]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedrabundvector.h
added the Calculators Thomas made in the fall. Added parameter and command error...
[mothur.git] / sharedrabundvector.h
index 5547f89dabeafdf59554e4c8d2144e5375b38fe8..92f71cdd75eca67df59f1f5cc548e61fe162b41e 100644 (file)
@@ -30,18 +30,24 @@ public:
        SharedRAbundVector(int);
        //SharedRAbundVector(string, vector<int>);
        SharedRAbundVector(const SharedRAbundVector& bv) : DataVector(bv), data(bv.data), maxRank(bv.maxRank), numBins(bv.numBins), numSeqs(bv.numSeqs){};
-//     SharedRAbundVector(ifstream&);
+    //SharedRAbundVector(ifstream&);
        ~SharedRAbundVector();
 
        int getNumBins();               
        int getNumSeqs();                                                       
        int getMaxRank();
        string getGroup();
-       void setGroup(string);                                                  
+       void setGroup(string);
+       int getGroupIndex();
+       void setGroupIndex(int);                                                                
 
        void set(int, int, string);                     //OTU, abundance, groupname
+       void setData(vector <individual>);
        individual get(int);
+       vector <individual> getData();
        int getAbundance(int);
+       int numNZ();
+       void sortD();  //Sorts the data in descending order.
        void push_back(int, int, string);  //abundance, OTU, groupname
        void pop_back();
        void resize(int);
@@ -52,6 +58,7 @@ public:
        void print(ostream&);
                
        RAbundVector getRAbundVector();
+       RAbundVector getRAbundVector2();
        SAbundVector getSAbundVector();
        OrderVector getOrderVector(map<string,int>*);
        SharedOrderVector getSharedOrderVector();
@@ -63,7 +70,8 @@ private:
        int maxRank;
        int numBins;
        int numSeqs;
-       string group;   
+       string group;
+       int index;      
 };