X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=kruskalwalliscommand.cpp;fp=kruskalwalliscommand.cpp;h=dd5eb09cbd3b54fb439d277cbd166f01dc726f84;hb=aa3ee3c06f2937ac571078f9b6902407ac19103f;hp=39afca8c8acb0228a60d18b8df4da9a23eb6adef;hpb=d71a31a60542608595ce1278cc4a3398479cec7f;p=mothur.git diff --git a/kruskalwalliscommand.cpp b/kruskalwalliscommand.cpp index 39afca8..dd5eb09 100644 --- a/kruskalwalliscommand.cpp +++ b/kruskalwalliscommand.cpp @@ -141,15 +141,19 @@ int KruskalWallisCommand::execute(){ //math goes here - int N = lookup.size(); + int N = m->getNumGroups(); double H; double tmp = 0.0; vector vec; + vector groups = m->getGroups(); string group; int count; double sum; //merge all groups into a vector + + + //rank function here assignRank(vec); @@ -157,7 +161,7 @@ int KruskalWallisCommand::execute(){ for (int i=0;i &vec) { } //********************************************************************************************************************** - +void KruskalWallisCommand::assignValue(vector &vec) { + +} //********************************************************************************************************************** //********************************************************************************************************************** //********************************************************************************************************************** \ No newline at end of file