]> git.donarmstrong.com Git - mothur.git/blob - rarefact.h
speed up rarefaction.shared
[mothur.git] / rarefact.h
1 #ifndef RAREFACT_H
2 #define RAREFACT_H
3
4 using namespace std;
5
6 #include "rarefactioncurvedata.h"
7 #include "raredisplay.h"
8 #include "ordervector.hpp"
9 #include "mothur.h"
10
11
12 class Rarefact {
13         
14 public:
15         Rarefact(OrderVector* o, vector<Display*> disp) :
16                         numSeqs(o->getNumSeqs()), order(o), displays(disp), label(o->getLabel())  {};
17         Rarefact(vector<SharedRAbundVector*> shared, vector<Display*> disp) :
18                                          lookup(shared), displays(disp) {};
19
20         ~Rarefact(){};
21         void getCurve(int, int);
22         void getSharedCurve(int, int);
23         
24 private:
25         OrderVector* order;
26         vector<Display*> displays;
27         int numSeqs, numGroupComb;
28         string label;
29         void mergeVectors(SharedRAbundVector*, SharedRAbundVector*);
30         vector<SharedRAbundVector*> lookup; 
31
32 };
33
34
35 #endif
36