X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=weighted.h;h=d4082fe9c82a7aeeb41aeaad62f016d0ec588d4d;hb=67ea6ccd74dbd64828d31b952808255f206364ff;hp=ca9f0378ffc96b545912742e10aab2242651558a;hpb=257eaa172451ede9d63a0715f6cdb7336a52996b;p=mothur.git diff --git a/weighted.h b/weighted.h index ca9f037..d4082fe 100644 --- a/weighted.h +++ b/weighted.h @@ -12,14 +12,14 @@ */ #include "treecalculator.h" -#include "treemap.h" +#include "counttable.h" /***********************************************************************/ class Weighted : public TreeCalculator { public: - Weighted(TreeMap* t) : tmap(t) {}; + Weighted( bool r) : includeRoot(r) {}; ~Weighted() {}; EstOutput getValues(Tree*, string, string); @@ -33,16 +33,16 @@ class Weighted : public TreeCalculator { }; vector lines; - GlobalData* globaldata; EstOutput data; - TreeMap* tmap; map::iterator it; map WScore; //a score for each group combination i.e. AB, AC, BC. int processors; string outputDir; + map< vector, set > rootForGrouping; //maps a grouping combo to the root for that combo + bool includeRoot; - EstOutput driver(Tree*, vector< vector >, int, int); - EstOutput createProcesses(Tree*, vector< vector >); + EstOutput driver(Tree*, vector< vector >, int, int, CountTable*); + EstOutput createProcesses(Tree*, vector< vector >, CountTable*); double getLengthToRoot(Tree*, int, string, string); };