X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarefact.h;fp=rarefact.h;h=b4a4cfee88a1c9d4dfc1abe58eaa59594002d108;hb=20a2d0350a737a434c89f303662d64a8eeea7b05;hp=0000000000000000000000000000000000000000;hpb=bbb5879a7e566935c23d63d42bb945072424b939;p=mothur.git diff --git a/rarefact.h b/rarefact.h new file mode 100644 index 0000000..b4a4cfe --- /dev/null +++ b/rarefact.h @@ -0,0 +1,38 @@ +#ifndef RAREFACT_H +#define RAREFACT_H + +using namespace std; + +#include "rarefactioncurvedata.h" +#include "raredisplay.h" +#include "ordervector.hpp" + + + +class Rarefact { + +public: + Rarefact(OrderVector* o, vector disp) : + numSeqs(o->getNumSeqs()), order(o), displays(disp), label(o->getLabel()) {}; + Rarefact(SharedOrderVector* sharedorder, vector disp) : + numSeqs(sharedorder->getNumSeqs()), sharedorder(sharedorder), displays(disp), label(sharedorder->getLabel()) {}; + + ~Rarefact(){}; + void getCurve(int, int); + void getSharedCurve(int, int); + +private: + SharedOrderVector* sharedorder; + GlobalData* globaldata; + OrderVector* order; + vector displays; + int numSeqs, numGroupComb; + string label; + void mergeVectors(SharedRAbundVector*, SharedRAbundVector*); + vector lookup; + +}; + + +#endif +