]> git.donarmstrong.com Git - mothur.git/blobdiff - knn.h
Revert to previous commit
[mothur.git] / knn.h
diff --git a/knn.h b/knn.h
new file mode 100644 (file)
index 0000000..c544235
--- /dev/null
+++ b/knn.h
@@ -0,0 +1,38 @@
+#ifndef KNN_H
+#define KNN_H
+
+/*
+ *  knn.h
+ *  Mothur
+ *
+ *  Created by westcott on 11/4/09.
+ *  Copyright 2009 Schloss Lab. All rights reserved.
+ *
+ */
+#include "mothur.h"
+#include "classify.h"
+
+/**************************************************************************************************/
+
+class Knn : public Classify {
+       
+public:
+       Knn(string, string, string, int, float, float, float, float, int, int);
+       ~Knn();
+       
+       void setDistName(string s);
+       string getTaxonomy(Sequence*);
+       
+private:
+       int num;
+       string findCommonTaxonomy(vector<string>);
+       string search, outDistName;
+       
+};
+
+/**************************************************************************************************/
+
+#endif
+
+