]> git.donarmstrong.com Git - mothur.git/blob - weighted.h
3fed6f5e90757ef699e7c4e68c1c7ccd954f9109
[mothur.git] / weighted.h
1 #ifndef WEIGHTED_H
2 #define WEIGHTED_H
3
4
5 /*
6  *  weighted.h
7  *  Mothur
8  *
9  *  Created by Sarah Westcott on 2/9/09.
10  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
11  *
12  */
13
14 #include "treecalculator.h"
15 #include "treemap.h"
16
17 /***********************************************************************/
18
19 class Weighted : public TreeCalculator  {
20         
21         public:
22                 Weighted(TreeMap* t) : tmap(t) {};
23                 ~Weighted() {};
24                 EstOutput getValues(Tree*);
25                 EstOutput getValues(Tree*, string, string);
26                 
27         private:
28                 GlobalData* globaldata;
29                 EstOutput data;
30                 TreeMap* tmap;
31                 map<string, int>::iterator it;
32                 map<string, double> WScore; //a score for each group combination i.e. AB, AC, BC.
33 };
34
35 /***********************************************************************/
36
37
38 #endif