X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=weighted.h;h=d4082fe9c82a7aeeb41aeaad62f016d0ec588d4d;hb=7aa301dfa67cfcb5b00c6b4e38a7ad56eb8337db;hp=3914ef229112d8cf4bd5b55033de0f459bbef25a;hpb=163b300cfd7d4ca4e70c454be20f07b1d8346650;p=mothur.git diff --git a/weighted.h b/weighted.h index 3914ef2..d4082fe 100644 --- a/weighted.h +++ b/weighted.h @@ -12,24 +12,38 @@ */ #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*); + EstOutput getValues(Tree*, string, string); + EstOutput getValues(Tree*, int, string); private: - GlobalData* globaldata; + struct linePair { + int start; + int num; + linePair(int i, int j) : start(i), num(j) {} + }; + vector lines; + 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, CountTable*); + EstOutput createProcesses(Tree*, vector< vector >, CountTable*); + double getLengthToRoot(Tree*, int, string, string); }; /***********************************************************************/