]> git.donarmstrong.com Git - mothur.git/blobdiff - rabundvector.cpp
added sorted option to get.rabund command
[mothur.git] / rabundvector.cpp
index ce04df11ccd769a233ce30bfdf0554f34377d6cd..7d6247001c645b4b312d0e6599d0c4996fffa44b 100644 (file)
@@ -193,6 +193,19 @@ vector<int>::reverse_iterator RAbundVector::rend(){
        return data.rend();                                     
 }
 
+/***********************************************************************/
+void RAbundVector::nonSortedPrint(ostream& output){
+       try {   
+               output << label << '\t' << numBins << '\t';
+       
+               for(int i=0;i<numBins;i++){             output << data[i] << '\t';              }
+               output << endl;
+       }
+       catch(exception& e) {
+               errorOut(e, "RAbundVector", "nonSortedPrint");
+               exit(1);
+       }
+}
 /***********************************************************************/
 void RAbundVector::print(string prefix, ostream& output){
        try {   
@@ -210,6 +223,7 @@ void RAbundVector::print(string prefix, ostream& output){
        }
 }
 
+
 /***********************************************************************/
 void RAbundVector::print(ostream& output){
        try {