]> git.donarmstrong.com Git - mothur.git/blobdiff - weighted.h
paralellized rarefaction.single
[mothur.git] / weighted.h
index 3914ef229112d8cf4bd5b55033de0f459bbef25a..3fa5123a59363ce4697fbead42522e35b78667b9 100644 (file)
@@ -21,15 +21,30 @@ class Weighted : public TreeCalculator  {
        public:
                Weighted(TreeMap* t) : tmap(t) {};
                ~Weighted() {};
-               EstOutput getValues(Tree*);
-               EstOutput getValues(Tree*, string, string);
+               
+               EstOutput getValues(Tree*, string, string, vector<double>&);
+               EstOutput getValues(Tree*, int, string);
+               
+               vector<double> getBranchLengthSums(Tree*);
                
        private:
+               struct linePair {
+                       int start;
+                       int num;
+                       linePair(int i, int j) : start(i), num(j) {}
+               };
+               vector<linePair> lines;
+
                GlobalData* globaldata;
                EstOutput data;
                TreeMap* tmap;
                map<string, int>::iterator it;
                map<string, double> WScore; //a score for each group combination i.e. AB, AC, BC.
+               int processors;
+               string outputDir;
+               
+               EstOutput driver(Tree*, vector< vector<string> >, int, int, vector<double>&); 
+               EstOutput createProcesses(Tree*, vector< vector<string> >, vector<double>&);
 };
 
 /***********************************************************************/