X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedace.cpp;h=2a06380b6896ae6c908f38222abdcc566bcae077;hp=c8ba4fa2347735dc27640321c286384960ddb134;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=e4c80376cc4533f66c8dfc18f3e1a86a60ac17fe diff --git a/sharedace.cpp b/sharedace.cpp index c8ba4fa..2a06380 100644 --- a/sharedace.cpp +++ b/sharedace.cpp @@ -32,7 +32,7 @@ EstOutput SharedAce::getValues(vector shared) { S12 = number of shared OTUs in A and B This estimator was changed to reflect Caldwell's changes, eliminating the nrare / nrare - 1 */ - 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);