]> git.donarmstrong.com Git - mothur.git/blobdiff - kruskalwalliscommand.h
added kruskalwallis command
[mothur.git] / kruskalwalliscommand.h
diff --git a/kruskalwalliscommand.h b/kruskalwalliscommand.h
new file mode 100644 (file)
index 0000000..7e52613
--- /dev/null
@@ -0,0 +1,42 @@
+/* 
+ * File:   kruskalwalliscommand.h
+ * Author: kiverson
+ *
+ * Created on June 26, 2012, 11:07 AM
+ */
+
+#ifndef KRUSKALWALLISCOMMAND_H
+#define        KRUSKALWALLISCOMMAND_H
+
+#include "command.hpp"
+
+class KruskalWallisCommand : public Command {
+
+public:
+       
+       KruskalWallisCommand(string);   
+       KruskalWallisCommand();
+       ~KruskalWallisCommand(){}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "kruskalwallis";                       }
+       string getCommandCategory()             { return "Hypothesis Testing";  }
+       string getOutputFileNameTag(string, string);
+       string getHelpString(); 
+       string getCitation() { return "http://www.mothur.org/wiki/kruskalwallis"; }
+       string getDescription()         { return "Non-parametric method for testing whether samples originate from the same distribution."; }
+    
+    int execute(); 
+       void help() { m->mothurOut(getHelpString()); }
+    multimap<double,double> getRank(vector<KruskalWallisCommand::groupRank>);
+    
+private:
+    string outputDir;
+    vector<int> counts;
+    vector<double> rankSums;
+    vector<double> rankMeans;
+    
+};
+
+#endif /* KRUSKALWALLISCOMMAND_H */
+