9 * Created by Sarah Westcott on 2/9/09.
10 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 #include "treecalculator.h"
17 /***********************************************************************/
19 class Weighted : public TreeCalculator {
22 Weighted(TreeMap* t, bool r) : tmap(t), includeRoot(r) {};
25 EstOutput getValues(Tree*, string, string);
26 EstOutput getValues(Tree*, int, string);
32 linePair(int i, int j) : start(i), num(j) {}
34 vector<linePair> lines;
38 map<string, int>::iterator it;
39 map<string, double> WScore; //a score for each group combination i.e. AB, AC, BC.
42 map< vector<string>, set<int> > rootForGrouping; //maps a grouping combo to the root for that combo
45 EstOutput driver(Tree*, vector< vector<string> >, int, int);
46 EstOutput createProcesses(Tree*, vector< vector<string> >);
47 double getLengthToRoot(Tree*, int, string, string);
50 /***********************************************************************/