X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=shen.cpp;h=0d515eb19487905608c341ddb536e82436a93938;hb=28d65de5f06f5b033109a3b8bbb6d3c4060914d3;hp=152a138c279a101038566ced46339d970caef9bd;hpb=cd37904452dc95b183ff313ff05720c562902487;p=mothur.git diff --git a/shen.cpp b/shen.cpp index 152a138..0d515eb 100644 --- a/shen.cpp +++ b/shen.cpp @@ -27,18 +27,16 @@ EstOutput Shen::getValues(SAbundVector* rank){ double f0 = ace[0]-rank->getNumBins(); data[0] = f0 * (1 - pow(1 - f1/n/f0, m)); - + + delete calc; + return data; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the Coverage class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "Shen", "getValues"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the Coverage class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } -}; +} /***********************************************************************/