]> git.donarmstrong.com Git - mothur.git/blob - raredisplay.h
changes while testing
[mothur.git] / raredisplay.h
1 #ifndef RAREDISPLAY_H
2 #define RAREDISPLAY_H
3
4 #include "sabundvector.hpp"
5 #include "calculator.h"
6 #include "fileoutput.h"
7 #include "display.h"
8
9 /***********************************************************************/
10
11 class RareDisplay : public Display {
12         
13 public:
14         RareDisplay(Calculator* calc, FileOutput* file) : estimate(calc), output(file), nIters(1) {};
15         ~RareDisplay()                                  {       delete estimate; delete output;         };
16         void init(string);
17         void reset();
18         void update(SAbundVector*);
19         void update(vector<SharedRAbundVector*> shared, int numSeqs, int numGroupComb);
20         void close();
21         bool isCalcMultiple() { return estimate->getMultiple(); }
22         
23         void outputTempFiles(string);
24         void inputTempFiles(string);
25         
26 private:
27         Calculator* estimate;
28         FileOutput* output;
29         string label;
30         map<int, vector<double> > results; //maps seqCount to results for that number of sequences
31         int nIters;
32 };
33
34 #endif
35