Added README.md
[clueless-kmeans.git] / clueless-kmeans.cc
index 557f0d8..d71a3cf 100644 (file)
@@ -1,17 +1,17 @@
 /*
- *  clueless-kmean is a variant of k-mean which enforces balanced
+ *  clueless-kmeans is a variant of k-means which enforces balanced
  *  distribution of classes in every cluster
  *
  *  Copyright (c) 2013 Idiap Research Institute, http://www.idiap.ch/
  *  Written by Francois Fleuret <francois.fleuret@idiap.ch>
  *
- *  This file is part of clueless-kmean.
+ *  This file is part of clueless-kmeans.
  *
- *  clueless-kmean is free software: you can redistribute it and/or
+ *  clueless-kmeans is free software: you can redistribute it and/or
  *  modify it under the terms of the GNU General Public License
  *  version 3 as published by the Free Software Foundation.
  *
- *  clueless-kmean is distributed in the hope that it will be useful,
+ *  clueless-kmeans is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  *  General Public License for more details.
@@ -83,12 +83,14 @@ int main(int argc, char **argv) {
       mode = Clusterer::STANDARD_LP_ASSOCIATION;
     } else if(strcmp(argv[1], "clueless") == 0) {
       mode = Clusterer::UNINFORMATIVE_LP_ASSOCIATION;
+    } else if(strcmp(argv[1], "clueless-absolute") == 0) {
+      mode = Clusterer::UNINFORMATIVE_LP_ASSOCIATION_ABSOLUTE;
     } else {
       cerr << "Unknown association mode " << argv[1] << endl;
       exit(EXIT_FAILURE);
     }
   } else {
-    cerr << "Usage: " << argv[0] << " standard|clueless" << endl;
+    cerr << "Usage: " << argv[0] << " standard|clueless|clueless-absolute" << endl;
     exit(EXIT_FAILURE);
   }