]> git.donarmstrong.com Git - mothur.git/blob - jackknife.h
Initial revision
[mothur.git] / jackknife.h
1 #ifndef JACKKNIFE_H
2 #define JACKKNIFE_H
3
4 /*
5  *  jacknife.h
6  *  Dotur
7  *
8  *  Created by Sarah Westcott on 1/7/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 #include <Carbon/Carbon.h>
14 #include "calculator.h"
15
16 /* This class implements the JackKnife estimator on single group. 
17 It is a child of the calculator class. */
18
19 /***********************************************************************/
20
21 class Jackknife : public Calculator  {
22         
23 public:
24         Jackknife() : Calculator("Jackknife", 3) {      getAMatrix(); };
25         EstOutput getValues(SAbundVector*);
26         EstOutput getValues(SharedRAbundVector*, SharedRAbundVector*) {return data;};
27
28 private:
29         static const int maxOrder = 30;
30         vector<vector<double> > aMat;
31
32         void getAMatrix();
33         double CN(double);
34 };
35
36 /***********************************************************************/
37
38 #endif