]> git.donarmstrong.com Git - mothur.git/blobdiff - jackknife.h
Initial revision
[mothur.git] / jackknife.h
diff --git a/jackknife.h b/jackknife.h
new file mode 100644 (file)
index 0000000..45f9287
--- /dev/null
@@ -0,0 +1,38 @@
+#ifndef JACKKNIFE_H
+#define JACKKNIFE_H
+
+/*
+ *  jacknife.h
+ *  Dotur
+ *
+ *  Created by Sarah Westcott on 1/7/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+#include <Carbon/Carbon.h>
+#include "calculator.h"
+
+/* This class implements the JackKnife estimator on single group. 
+It is a child of the calculator class. */
+
+/***********************************************************************/
+
+class Jackknife : public Calculator  {
+       
+public:
+       Jackknife() : Calculator("Jackknife", 3) {      getAMatrix(); };
+       EstOutput getValues(SAbundVector*);
+       EstOutput getValues(SharedRAbundVector*, SharedRAbundVector*) {return data;};
+
+private:
+       static const int maxOrder = 30;
+       vector<vector<double> > aMat;
+
+       void getAMatrix();
+       double CN(double);
+};
+
+/***********************************************************************/
+
+#endif
\ No newline at end of file