X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsobscollectsummary.cpp;h=fffed0290b1136da46e42d31c99542da19ec9a0a;hb=4542a79d20176ff0ee830b0f9d4f4c92637439d9;hp=0096303d03cd8282e8732046ddc36205a15a1633;hpb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2;p=mothur.git diff --git a/sharedsobscollectsummary.cpp b/sharedsobscollectsummary.cpp index 0096303..fffed02 100644 --- a/sharedsobscollectsummary.cpp +++ b/sharedsobscollectsummary.cpp @@ -16,10 +16,10 @@ EstOutput SharedSobsCS::getValues(vector 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++) { @@ -34,7 +34,7 @@ EstOutput SharedSobsCS::getValues(vector shared){ return data; } catch(exception& e) { - errorOut(e, "SharedSobsCS", "getValues"); + m->errorOut(e, "SharedSobsCS", "getValues"); exit(1); } }