]> git.donarmstrong.com Git - mothur.git/blobdiff - rarecalc.h
Revert to previous commit
[mothur.git] / rarecalc.h
diff --git a/rarecalc.h b/rarecalc.h
new file mode 100644 (file)
index 0000000..8a0fb72
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef RARECALC_H
+#define RARECALC_H
+/*
+ *  rarecalc.h
+ *  Dotur
+ *
+ *  Created by Sarah Westcott on 1/7/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+/* This class is not currently used by Mothur */
+
+#include "calculator.h"
+
+/***********************************************************************/
+class RareCalc {
+
+public:
+       RareCalc(RAbundVector* b) : bins(b), numSeqs(b->getNumSeqs()), maxRank(b->getMaxRank()), numBins(b->getNumBins()) {     m = MothurOut::getInstance(); bMatrix = m->binomial(numSeqs+1); }
+       EstOutput getValues(int);
+       string getName()        {       return "rarecalc";      }
+private:
+       RAbundVector* bins;
+       vector<vector<double> > bMatrix;
+       int numSeqs, maxRank, numBins;
+       MothurOut* m;
+};
+
+/***********************************************************************/
+
+#endif