]> git.donarmstrong.com Git - mothur.git/blob - treecalculator.h
weightedcommand
[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         virtual EstOutput getValues(Tree*, string, string) = 0;
33         
34         virtual string getName()                {       return name;    }
35                 
36 protected:
37         EstOutput data;
38         string name;
39
40 };
41
42 /***********************************************************************/
43
44 #endif