1 #ifndef SHAREDJACKKNIFE_H
2 #define SHAREDJACKKNIFE_H
8 * Created by Thomas Ryabin on 3/30/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
13 #include "calculator.h"
14 #include "globaldata.hpp"
16 /*This class implements the SharedJackknife estimator.
17 It is a child of the calculator class.*/
19 /***********************************************************************/
21 class SharedJackknife : public Calculator {
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*>);
29 GlobalData* globaldata;
30 int numGroups, callCount, count;
32 vector<SharedRAbundVector*> groups;
33 double simpson(vector<int>, double, int);
37 /***********************************************************************/