]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsobscollectsummary.cpp
working on adding subsampling to dist.shared. fixed bug in phylotype command related...
[mothur.git] / sharedsobscollectsummary.cpp
index e2e169c58788dfcd7e9aa313b7105a446bef7867..fffed0290b1136da46e42d31c99542da19ec9a0a 100644 (file)
@@ -19,7 +19,7 @@ EstOutput SharedSobsCS::getValues(vector<SharedRAbundVector*> shared){
                double observed = 0;
                int numGroups = shared.size();
 
-               for (int i = 0; i < shared[0]->size(); i++) {
+               for (int i = 0; i < shared[0]->getNumBins(); i++) {
                        //get bin values and set sharedByAll 
                        bool sharedByAll = true;
                        for (int j = 0; j < numGroups; j++) {