X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unweighted.h;h=b136b007b517e56645be544ee6556f83a45de649;hb=c48d91112209b841444923670dca5454da0e2a4d;hp=e3bf3a8fc240648e4a38f48ced539845d3648706;hpb=b2dca66a02f8f82aa5528e531eace60fbbd2967b;p=mothur.git diff --git a/unweighted.h b/unweighted.h index e3bf3a8..b136b00 100644 --- a/unweighted.h +++ b/unweighted.h @@ -12,28 +12,39 @@ */ #include "treecalculator.h" -#include "treemap.h" +#include "counttable.h" /***********************************************************************/ class Unweighted : public TreeCalculator { public: - Unweighted(TreeMap* t) : tmap(t) {}; + Unweighted(bool r) : includeRoot(r) {}; ~Unweighted() {}; - EstOutput getValues(Tree*); + EstOutput getValues(Tree*, int, string); + EstOutput getValues(Tree*, string, string, int, string); private: - GlobalData* globaldata; + struct linePair { + int start; + int num; + linePair(int i, int j) : start(i), num(j) {} + }; + vector lines; + EstOutput data; - vector penalty; - TreeMap* tmap; - bool inUsersGroups(string); - + int processors; + string outputDir; + map< vector, set > rootForGrouping; //maps a grouping combo to the roots for that combo + bool includeRoot; + + EstOutput driver(Tree*, vector< vector >, int, int, CountTable*); + EstOutput createProcesses(Tree*, vector< vector >, CountTable*); + EstOutput driver(Tree*, vector< vector >, int, int, bool, CountTable*); + EstOutput createProcesses(Tree*, vector< vector >, bool, CountTable*); + int getRoot(Tree*, int, vector); }; /***********************************************************************/ - - -#endif \ No newline at end of file +#endif