X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedrabundfloatvector.h;h=f8d69a8a5a17d4b9cadcf0e5c500d93498f601fc;hp=f826d9ce4b525e61909324c3481dd6a7bd847146;hb=050a3ff02473a3d4c0980964e1a9ebe52e55d6b8;hpb=7ae40733a270f73ec8a331540cc7f28fd60b24fc diff --git a/sharedrabundfloatvector.h b/sharedrabundfloatvector.h index f826d9c..f8d69a8 100644 --- a/sharedrabundfloatvector.h +++ b/sharedrabundfloatvector.h @@ -15,7 +15,7 @@ #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. @@ -23,7 +23,6 @@ An individual which knows the OTU from which it came, the group it is in and its abundance. */ -class GlobalData; class SharedRAbundFloatVector : public DataVector { @@ -46,14 +45,17 @@ public: individualFloat get(int); vector getData(); float getAbundance(int); + vector getAbundances(); void push_front(float, int, string); //abundance, otu, groupname void insert(float, int, string); //abundance, otu, groupname 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(); @@ -67,13 +69,15 @@ public: private: vector data; vector lookup; - GlobalData* globaldata; - GroupMap* groupmap; + //GlobalData* globaldata; + //GroupMap* groupmap; float maxRank; int numBins; float numSeqs; string group; int index; + + int eliminateZeroOTUS(vector&); };