X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedbraycurtis.cpp;h=3711ce77cbb312e5dc2ee2aba14e1856bb942d12;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=0182e13bd34ea9164383b5f83c221ae705898677;hpb=5a7b1d45e9604becce2410333fcc71de818e3782;p=mothur.git 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);