#include "sharedordervector.h"
#include "sharedsabundvector.h"
#include "rabundvector.hpp"
-#include "groupmap.h"
+//#include "groupmap.h"
/* This class is a child to datavector. It represents OTU information at a certain distance.
It is similiar to an rabundvector except each member of data knows which group it belongs to.
An individual which knows the OTU from which it came,
the group it is in and its abundance. */
-class GlobalData;
class SharedRAbundFloatVector : public DataVector {
void push_back(float, string); //abundance, groupname
void pop_back();
void resize(int);
+ void clear();
int size();
void print(ostream&);
+ void printHeaders(ostream&);
RAbundVector getRAbundVector();
SAbundVector getSAbundVector();
private:
vector<individualFloat> data;
vector<SharedRAbundFloatVector*> lookup;
- GlobalData* globaldata;
- GroupMap* groupmap;
+ //GlobalData* globaldata;
+ //GroupMap* groupmap;
float maxRank;
int numBins;
float numSeqs;
string group;
int index;
+
+ int eliminateZeroOTUS(vector<SharedRAbundFloatVector*>&);
};