]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefact.h
Revert to previous commit
[mothur.git] / rarefact.h
diff --git a/rarefact.h b/rarefact.h
new file mode 100644 (file)
index 0000000..5e42a78
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef RAREFACT_H
+#define RAREFACT_H
+
+#include "rarefactioncurvedata.h"
+#include "raredisplay.h"
+#include "ordervector.hpp"
+#include "mothur.h"
+
+
+class Rarefact {
+       
+public:
+       Rarefact(OrderVector* o, vector<Display*> disp, int p) :
+                       numSeqs(o->getNumSeqs()), order(o), displays(disp), label(o->getLabel()), processors(p)  { m = MothurOut::getInstance(); }
+       Rarefact(vector<SharedRAbundVector*> shared, vector<Display*> disp) :
+                                        lookup(shared), displays(disp) {  m = MothurOut::getInstance(); }
+
+       ~Rarefact(){};
+       int getCurve(float, int);
+       int getSharedCurve(float, int);
+       
+private:
+       
+       OrderVector* order;
+       vector<Display*> displays;
+       int numSeqs, numGroupComb, processors;
+       string label;
+       void mergeVectors(SharedRAbundVector*, SharedRAbundVector*);
+       vector<SharedRAbundVector*> lookup; 
+       MothurOut* m;
+       
+       int createProcesses(vector<int>&, RarefactionCurveData*, int);
+       int driver(RarefactionCurveData*, int, int);
+
+};
+
+
+#endif
+