]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedace.cpp
changes while testing
[mothur.git] / sharedace.cpp
index c8ba4fa2347735dc27640321c286384960ddb134..2a06380b6896ae6c908f38222abdcc566bcae077 100644 (file)
@@ -32,7 +32,7 @@ EstOutput SharedAce::getValues(vector<SharedRAbundVector*> 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);