]> git.donarmstrong.com Git - mothur.git/blob - sharedjackknife.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / sharedjackknife.h
1 #ifndef SHAREDJACKKNIFE_H
2 #define SHAREDJACKKNIFE_H
3
4 /*
5  *  sharedjackknife.h
6  *  Mothur
7  *
8  *  Created by Thomas Ryabin on 3/30/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 #include "calculator.h"
14
15 /*This class implements the SharedJackknife estimator. 
16 It is a child of the calculator class.*/ 
17
18 /***********************************************************************/
19
20 class SharedJackknife : public Calculator  {
21         
22 public:
23         SharedJackknife() : numGroups(-1), callCount(0), count(0), currentCallDone(true), Calculator("sharedjackknife", 3, false) {};
24         EstOutput getValues(SAbundVector*) {return data;};
25         EstOutput getValues(vector<SharedRAbundVector*>);
26         
27 private:
28         int numGroups, callCount, count;
29         bool currentCallDone;
30         vector<SharedRAbundVector*> groups;
31         double simpson(vector<int>, double, int);
32         double* jackknife();
33 };
34
35 /***********************************************************************/
36
37 #endif
38