X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedbraycurtis.cpp;h=3711ce77cbb312e5dc2ee2aba14e1856bb942d12;hp=0182e13bd34ea9164383b5f83c221ae705898677;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=5a7b1d45e9604becce2410333fcc71de818e3782 diff --git a/sharedbraycurtis.cpp b/sharedbraycurtis.cpp index 0182e13..3711ce7 100644 --- a/sharedbraycurtis.cpp +++ b/sharedbraycurtis.cpp @@ -24,7 +24,7 @@ EstOutput BrayCurtis::getValues(vector 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);