]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedlennon.cpp
changes to beta diversity calculators
[mothur.git] / sharedlennon.cpp
index 0c0f833f33ff83299237b8b03cc9e28174f2c224..f3ed5ece3850f6528ecb56cc99a17765b7766ff7 100644 (file)
@@ -39,7 +39,7 @@ EstOutput Lennon::getValues(vector<SharedRAbundVector*> shared) {
                if (tempA < tempB) { min = tempA; }
                else { min = tempB; }
                
-               data[0] = S12 / (float)(S12 + min);
+               data[0] = 1.0 - S12 / (float)(S12 + min);
                
                if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }