4 #include "datavector.hpp"
6 /* This class is a child to datavector. It represents OTU information at a certain distance.
7 A rabundvector can be converted into and ordervector, listvector or sabundvector.
8 Each member of the internal container "data" represents an individual OTU.
9 So data[0] = 6, because there are six member in that OTU.
10 example: listvector = a,b,c,d,e,f g,h,i j,k l m
11 rabundvector = 6 3 2 1 1
12 sabundvector = 2 1 1 0 0 1
13 ordervector = 1 1 1 1 1 1 2 2 2 3 3 4 5 */
18 class RAbundVector : public DataVector {
23 RAbundVector(vector<int>, int, int, int);
24 // RAbundVector(const RAbundVector&);
25 RAbundVector(string, vector<int>);
26 RAbundVector(const RAbundVector& bv) : DataVector(bv), data(bv.data), maxRank(bv.maxRank), numBins(bv.numBins), numSeqs(bv.numSeqs){};
27 RAbundVector(ifstream&);
44 vector<int>::reverse_iterator rbegin();
45 vector<int>::reverse_iterator rend();
48 void print(string, ostream&);
49 void nonSortedPrint(ostream&);
51 RAbundVector getRAbundVector();
52 SAbundVector getSAbundVector();
53 OrderVector getOrderVector(map<string,int>*);