X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=whittaker.cpp;h=5ab1e5dd88eedb8e0fb0dbe52d0b42e0c61d3c44;hb=6b32d112bb60e9f7eb6d4407a4eed4c49b67bced;hp=8688edd3871ca05542a06dd2432dd094ab948889;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;p=mothur.git diff --git a/whittaker.cpp b/whittaker.cpp index 8688edd..5ab1e5d 100644 --- a/whittaker.cpp +++ b/whittaker.cpp @@ -23,7 +23,7 @@ EstOutput Whittaker::getValues(vector shared){ if(shared[1]->getAbundance(i) != 0){ countB++; } } - data[0] = 2*sTotal/(float)(countA+countB)-1; + data[0] = 2-2*sTotal/(float)(countA+countB); return data; } catch(exception& e) {