]> git.donarmstrong.com Git - mothur.git/blob - treecalculator.h
started shared utilities, updates to venn and heatmap added tree.groups command
[mothur.git] / treecalculator.h
1 #ifndef TREECALCULATOR_H
2 #define TREECALCULATOR_H
3
4 /*
5  *  treecalculator.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 1/26/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 using namespace std;
14
15 #include "mothur.h"
16 #include "tree.h"
17
18 /* The tree calculator class is the parent class for tree calculators in mothur. */ 
19
20 typedef vector<double> EstOutput;
21
22 /***********************************************************************/
23
24 class TreeCalculator {
25
26 public:
27         TreeCalculator(){};
28         TreeCalculator(string n) : name(n) {};
29         ~TreeCalculator(){};
30         virtual EstOutput getValues(Tree*) = 0; 
31         virtual EstOutput getValues(Tree*, string, string) = 0;
32         
33         virtual string getName()                {       return name;    }
34                 
35 protected:
36         EstOutput data;
37         string name;
38
39 };
40
41 /***********************************************************************/
42
43 #endif