]> git.donarmstrong.com Git - mothur.git/blobdiff - sobs.h
Revert to previous commit
[mothur.git] / sobs.h
diff --git a/sobs.h b/sobs.h
new file mode 100644 (file)
index 0000000..05956a4
--- /dev/null
+++ b/sobs.h
@@ -0,0 +1,36 @@
+#ifndef SOBS_H
+#define SOBS_H
+
+/*
+ *  sobs.h
+ *  Dotur
+ *
+ *  Created by Sarah Westcott on 1/7/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+/* This class implements the Sobs estimator on single group. 
+It is a child of the calculator class. */
+
+
+#include "calculator.h"
+
+/***********************************************************************/
+
+class Sobs : public Calculator {
+
+public:
+       Sobs() : Calculator("sobs", 1, false) {};
+       EstOutput getValues(SAbundVector* rank){
+               data.resize(1,0);
+               data[0] = (double)rank->getNumBins();
+               return data;
+       }
+       EstOutput getValues(vector<SharedRAbundVector*>) {return data;};
+       string getCitation() { return "http://www.mothur.org/wiki/Sobs"; }
+};
+
+/***********************************************************************/
+
+#endif