From aa3ee3c06f2937ac571078f9b6902407ac19103f Mon Sep 17 00:00:00 2001 From: Kathryn Iverson Date: Mon, 2 Jul 2012 14:11:04 -0400 Subject: [PATCH] updated getgroupnames --- kruskalwalliscommand.cpp | 12 +++++++++--- kruskalwalliscommand.h | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) 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: -- 2.39.2