X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedanderbergs.cpp;fp=sharedanderbergs.cpp;h=10dfbd544bedeafaa3a82c282174480e9b55d005;hb=5a7b1d45e9604becce2410333fcc71de818e3782;hp=09ec692259f8845e7543bdf71eeab298c657d207;hpb=7ecb96ba54980d303fa066b4c29dae1e5a5be5b9;p=mothur.git diff --git a/sharedanderbergs.cpp b/sharedanderbergs.cpp index 09ec692..10dfbd5 100644 --- a/sharedanderbergs.cpp +++ b/sharedanderbergs.cpp @@ -33,7 +33,7 @@ EstOutput Anderberg::getValues(vector shared) { if ((tempA != 0) && (tempB != 0)) { S12++; } } - data[0] = S12 / ((float)((2 * S1) + (2 * S2) - (3 * S12))); + data[0] = 1.0 - S12 / ((float)((2 * S1) + (2 * S2) - (3 * S12))); if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }