]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsobscollectsummary.cpp
added check to make sure shhh.flows child processes finish properly. added subsamplin...
[mothur.git] / sharedsobscollectsummary.cpp
index c64c8259ca25d0a3c585113049ff4877d6630555..fffed0290b1136da46e42d31c99542da19ec9a0a 100644 (file)
 EstOutput SharedSobsCS::getValues(vector<SharedRAbundVector*> shared){
        try {
                data.resize(1,0);
-               int observed = 0;
+               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++) {