X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedkulczynski.cpp;h=5c91ddb65c654c5788c748596e87ddda94ae25f1;hb=70491a12902e89b85cfa6b44a7b7fbe066ee2ac1;hp=6aad5df26f2a6912b950df9e8d8211e730ef0fe1;hpb=5a7b1d45e9604becce2410333fcc71de818e3782;p=mothur.git diff --git a/sharedkulczynski.cpp b/sharedkulczynski.cpp index 6aad5df..5c91ddb 100644 --- a/sharedkulczynski.cpp +++ b/sharedkulczynski.cpp @@ -21,7 +21,7 @@ EstOutput Kulczynski::getValues(vector 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);