X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=ordervector.hpp;h=0139a6404b833707909cb425885bb3be683becff;hp=92259a8463625082e8580530ffe2d8a638f1419b;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=20a2d0350a737a434c89f303662d64a8eeea7b05 diff --git a/ordervector.hpp b/ordervector.hpp index 92259a8..0139a64 100644 --- a/ordervector.hpp +++ b/ordervector.hpp @@ -5,6 +5,16 @@ #include "sabundvector.hpp" #include "rabundvector.hpp" +/* This class is a child to datavector. It represents OTU information at a certain distance. + A order vector can be converted into and listvector, rabundvector or sabundvector. + Each member of the internal container "data" represents the OTU from which it came. + So in the example below since there are 6 sequences in OTU 1 there are six 1's in the ordervector. + and since there are 2 sequences in OTU 3 there are two 3's in the ordervector. + example: listvector = a,b,c,d,e,f g,h,i j,k l m + rabundvector = 6 3 2 1 1 + sabundvector = 2 1 1 0 0 1 + ordervector = 1 1 1 1 1 1 2 2 2 3 3 4 5 */ + class OrderVector : public DataVector { @@ -25,6 +35,7 @@ public: void push_back(int); void resize(int); int size(); + void clear(); void print(string, ostream&); vector::iterator begin(); vector::iterator end();