]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedbraycurtis.cpp
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / sharedbraycurtis.cpp
index 0182e13bd34ea9164383b5f83c221ae705898677..3711ce77cbb312e5dc2ee2aba14e1856bb942d12 100644 (file)
@@ -24,7 +24,7 @@ EstOutput BrayCurtis::getValues(vector<SharedRAbundVector*> shared) {
                sumSharedAB = the sum of the minimum otus int all shared otus in AB.
                */
                
-               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);