]> git.donarmstrong.com Git - mothur.git/blobdiff - sabundvector.cpp
added shannonrange calc.
[mothur.git] / sabundvector.cpp
index 6e4401bab964db2755e7ce1bb9f39c67703bf864..0b3dde6fe9312b72d2f08a716b5b61ee01cca64d 100644 (file)
@@ -54,13 +54,12 @@ SAbundVector::SAbundVector(ifstream& f): DataVector(), maxRank(0), numBins(0), n
        try {
                int hold;
                f >> label >> hold;
-       
+        
                data.assign(hold+1, 0);
                int inputData;
        
                for(int i=1;i<=hold;i++){
                        f >> inputData;
-
                        set(i, inputData);
                }
 
@@ -153,7 +152,13 @@ void SAbundVector::print(string prefix, ostream& output){
        }
        output << endl;
 }
-
+/***********************************************************************/
+void SAbundVector::clear(){
+       numBins = 0;
+       maxRank = 0;
+       numSeqs = 0;
+       data.clear();   
+}
 /***********************************************************************/
 void SAbundVector::print(ostream& output){
        try {