X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedjest.cpp;h=9a1cfbb5a1567153628a1213a494c36242e1d763;hp=504dd7d605d7d06193c4596841975b0a8f801086;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=82bf18e3ef0a52345519f91a682e64cc385b56bb diff --git a/sharedjest.cpp b/sharedjest.cpp index 504dd7d..9a1cfbb 100644 --- a/sharedjest.cpp +++ b/sharedjest.cpp @@ -39,7 +39,7 @@ EstOutput Jest::getValues(vector shared) { S1 = chaoS1->getValues(chaoS1Sabund); S2 = chaoS2->getValues(chaoS2Sabund); - data[0] = S12[0] / (float)(S1[0] + S2[0] - S12[0]); + data[0] = 1.0 - S12[0] / (float)(S1[0] + S2[0] - S12[0]); if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }