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( bool r) : 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;
37 map<string, int>::iterator it;
38 map<string, double> WScore; //a score for each group combination i.e. AB, AC, BC.
41 map< vector<string>, set<int> > rootForGrouping; //maps a grouping combo to the root for that combo
44 EstOutput driver(Tree*, vector< vector<string> >, int, int, TreeMap*);
45 EstOutput createProcesses(Tree*, vector< vector<string> >, TreeMap*);
46 double getLengthToRoot(Tree*, int, string, string);
49 /***********************************************************************/