2 * File: kruskalwalliscommand.h
5 * Created on June 26, 2012, 11:07 AM
8 #ifndef KRUSKALWALLISCOMMAND_H
9 #define KRUSKALWALLISCOMMAND_H
11 #include "command.hpp"
15 class KruskalWallisCommand : public Command {
19 KruskalWallisCommand(string);
20 KruskalWallisCommand();
21 ~KruskalWallisCommand(){}
23 vector<string> setParameters();
24 string getCommandName() { return "kruskalwallis"; }
25 string getCommandCategory() { return "Hypothesis Testing"; }
26 string getOutputFileNameTag(string, string);
27 string getHelpString();
28 string getCitation() { return "http://www.mothur.org/wiki/kruskalwallis"; }
29 string getDescription() { return "Non-parametric method for testing whether samples originate from the same distribution."; }
38 void help() { m->mothurOut(getHelpString()); }
39 void assignRank(vector<groupRank>);
44 vector<double> rankSums;
45 vector<double> rankMeans;
49 bool comparevalue(const groupRank &a, const groupRank &b) { return a.value < b.value; }
50 bool equalvalue(const groupRank &a, const groupRank &b) { return a.value == b.value; }
51 bool comparerank(const groupRank &a, const groupRank &b) { return a.rank < b.rank; }
52 bool equalrank(const groupRank &a, const groupRank &b) { return a.rank == b.rank; }
53 bool equalgroup(const groupRank &a, const groupRank &b) { return a.group == b.group; }
57 #endif /* KRUSKALWALLISCOMMAND_H */