]> git.donarmstrong.com Git - mothur.git/blob - treecalculator.h
added mothur.h and fixed includes in many files
[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 "utilities.hpp"
17 #include "tree.h"
18
19 /* The tree calculator class is the parent class for tree calculators in mothur. */ 
20
21 typedef vector<double> EstOutput;
22
23 /***********************************************************************/
24
25 class TreeCalculator {
26
27 public:
28         TreeCalculator(){};
29         TreeCalculator(string n) : name(n) {};
30         ~TreeCalculator(){};
31         virtual EstOutput getValues(Tree*) = 0; 
32         
33         virtual string getName()                {       return name;    }
34                 
35 protected:
36         EstOutput data;
37         string name;
38
39 };
40
41 /***********************************************************************/
42
43 #endif