]> git.donarmstrong.com Git - mothur.git/blob - sharedjackknife.h
*** empty log message ***
[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 __MyCompanyName__. All rights reserved.
10  *
11  */
12
13 #include "calculator.h"
14 #include "globaldata.hpp"
15
16 /*This class implements the SharedJackknife estimator. 
17 It is a child of the calculator class.*/ 
18
19 /***********************************************************************/
20
21 class SharedJackknife : public Calculator  {
22         
23 public:
24         SharedJackknife() : numGroups(-1), callCount(0), count(0), currentCallDone(true), Calculator("sharedjackknife", 3, false) {};
25         EstOutput getValues(SAbundVector*) {return data;};
26         EstOutput getValues(vector<SharedRAbundVector*>);
27         
28 private:
29         GlobalData* globaldata;
30         int numGroups, callCount, count;
31         bool currentCallDone;
32         vector<SharedRAbundVector*> groups;
33         double simpson(int[], double, int);
34         double* jackknife();
35 };
36
37 /***********************************************************************/
38
39 #endif
40