]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedanderbergs.cpp
changes while testing
[mothur.git] / sharedanderbergs.cpp
index 10dfbd544bedeafaa3a82c282174480e9b55d005..cbb9d3003ed84631e5251f9baf6738a165c83c7e 100644 (file)
@@ -21,7 +21,7 @@ EstOutput Anderberg::getValues(vector<SharedRAbundVector*> shared) {
 
                data.resize(1,0);
                
-               for (int i = 0; i < shared[0]->size(); i++) {
+               for (int i = 0; i < shared[0]->getNumBins(); i++) {
                        //store in temps to avoid multiple repetitive function calls
                        tempA = shared[0]->getAbundance(i);
                        tempB = shared[1]->getAbundance(i);