]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsorclass.cpp
working on pam
[mothur.git] / sharedsorclass.cpp
index 32728f575a52f94c9d7b8b287fd14a7147ad53e9..85609dad69311e08474a2115755d74761052ab13 100644 (file)
@@ -21,7 +21,7 @@ EstOutput SorClass::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);