X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedsorabund.cpp;h=9a1bd63d7bd2a5b459c6b9955afa77cebc23ed7c;hp=6748bfe86af75f13a5c206577ed5a7f0d51fa6ae;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=50ed3b6104d5821d6184f882e1e1423d47dcbf10 diff --git a/sharedsorabund.cpp b/sharedsorabund.cpp index 6748bfe..9a1bd63 100644 --- a/sharedsorabund.cpp +++ b/sharedsorabund.cpp @@ -23,17 +23,14 @@ EstOutput SorAbund::getValues(vector shared) { data[0] = (2 * UVest[0] * UVest[1]) / ((float)(UVest[0] + UVest[1])); if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; } + data[0] = 1-data[0]; return data; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the SorAbund class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + m->errorOut(e, "SorAbund", "getValues"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the SorAbund class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } /***********************************************************************/