X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=geom.cpp;fp=geom.cpp;h=a52e64443a0ad1fa9a06ca77361eba8741ba97cb;hb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2;hp=a23352c0f11d588c6254e3b16c4d1932a381b37e;hpb=37e0d78135e32b5aa58ca163f4d416716c78b67f;p=mothur.git diff --git a/geom.cpp b/geom.cpp index a23352c..a52e644 100644 --- a/geom.cpp +++ b/geom.cpp @@ -74,17 +74,11 @@ EstOutput Geom::getValues(SAbundVector* rank){ } - /*cout << "Geom:\n"; - cout << "D-Statistic = " << DStatistic << "\n"; - cout << "Critical value for 95% confidence interval = ";*/ - data[0] = maxDiff/numInd; data[1] = 0.886/sqrt(numSpec); data[2] = 1.031/sqrt(numSpec); - /*cout << critVal << "\n"; - cout << "If D-Statistic is less than the critical value then the data fits the Geometric Series model w/ 95% confidence.\n\n";*/ - + if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; } if (isnan(data[1]) || isinf(data[1])) { data[1] = 0; } if (isnan(data[2]) || isinf(data[2])) { data[2] = 0; } @@ -92,13 +86,9 @@ EstOutput Geom::getValues(SAbundVector* rank){ return data; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the Geom class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "Geom", "getValues"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the Geom class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } /***********************************************************************/