1 #ifndef TREECALCULATOR_H
2 #define TREECALCULATOR_H
8 * Created by Sarah Westcott on 1/26/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
15 #include "mothurout.h"
17 /* The tree calculator class is the parent class for tree calculators in mothur. */
19 typedef vector<double> EstOutput;
21 /***********************************************************************/
23 class TreeCalculator {
26 TreeCalculator(){ m = MothurOut::getInstance(); }
27 TreeCalculator(string n) : name(n) {};
29 virtual ~TreeCalculator(){};
30 virtual EstOutput getValues(Tree*) { return data; }
31 virtual EstOutput getValues(Tree*, int, string) { return data; }
32 virtual EstOutput getValues(Tree*, string, string) { return data; }
33 virtual EstOutput getValues(Tree*, string, string, vector<double>&) { return data; }
35 virtual string getName() { return name; }
44 /***********************************************************************/