X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsorabund.cpp;fp=sharedsorabund.cpp;h=9a1bd63d7bd2a5b459c6b9955afa77cebc23ed7c;hb=5a7b1d45e9604becce2410333fcc71de818e3782;hp=90b825adbd8a7c0522f5be47db3a9009693bc735;hpb=7ecb96ba54980d303fa066b4c29dae1e5a5be5b9;p=mothur.git diff --git a/sharedsorabund.cpp b/sharedsorabund.cpp index 90b825a..9a1bd63 100644 --- a/sharedsorabund.cpp +++ b/sharedsorabund.cpp @@ -23,6 +23,7 @@ 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; }