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