From: Kathryn Iverson Date: Mon, 2 Jul 2012 18:11:04 +0000 (-0400) Subject: updated getgroupnames X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=aa3ee3c06f2937ac571078f9b6902407ac19103f updated getgroupnames --- 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 diff --git a/kruskalwalliscommand.h b/kruskalwalliscommand.h index 0fa8b68..4a1e189 100644 --- a/kruskalwalliscommand.h +++ b/kruskalwalliscommand.h @@ -38,6 +38,7 @@ public: int execute(); void help() { m->mothurOut(getHelpString()); } void assignRank(vector&); + void assignValue(vector&); private: