7 * Created by Sarah Westcott on 1/8/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
12 /* This class implements the Sharedchao1 estimator on two groups.
13 It is a child of the calculator class. */
16 #include "calculator.h"
18 /***********************************************************************/
21 class SharedChao1 : public Calculator {
24 SharedChao1() : Calculator("sharedchao", 1, true) {};
25 EstOutput getValues(SAbundVector*) {return data;};
26 EstOutput getValues(vector<SharedRAbundVector*>);
30 vector<IntNode*> f1leaves;
31 vector<IntNode*> f2leaves;
35 void initialTree(int); //builds trees structure with n leaf nodes initialized to 0.
36 void setCoef(IntNode*, int);
37 void updateTree(vector<int>); //take vector containing the abundance info. for a bin and updates trees.
38 void updateBranchf1(IntNode*, vector<int>, int); //pointer, vector of abundance values, index into vector
39 void updateBranchf2(IntNode*, vector<int>, int); //pointer, vector of abundance values, index into vector
43 void printBranch(IntNode*);
46 /***********************************************************************/