X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsobscollectsummary.cpp;h=fffed0290b1136da46e42d31c99542da19ec9a0a;hb=b866e1519a60681527244036428104ad1cb90c93;hp=c0cc50700d9f9fc38523991a1c08cf287fb1fc29;hpb=163b300cfd7d4ca4e70c454be20f07b1d8346650;p=mothur.git diff --git a/sharedsobscollectsummary.cpp b/sharedsobscollectsummary.cpp index c0cc507..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,13 +34,9 @@ EstOutput SharedSobsCS::getValues(vector shared){ return data; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the SharedSobsCS class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + m->errorOut(e, "SharedSobsCS", "getValues"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the SharedSobsCS class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } /***********************************************************************/