]> git.donarmstrong.com Git - mothur.git/blob - sharedjackknife.h
fixes while testing 1.33.0
[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         string getCitation() { return "http://www.mothur.org/wiki/Sharedjackknife"; }
27         
28 private:
29         int numGroups, callCount, count;
30         bool currentCallDone;
31         vector<SharedRAbundVector*> groups;
32         double simpson(vector<int>, double, int);
33         double* jackknife();
34 };
35
36 /***********************************************************************/
37
38 #endif
39