]> git.donarmstrong.com Git - mothur.git/blobdiff - whittaker.cpp
changing command name classify.shared to classifyrf.shared
[mothur.git] / whittaker.cpp
index 8688edd3871ca05542a06dd2432dd094ab948889..5ab1e5dd88eedb8e0fb0dbe52d0b42e0c61d3c44 100644 (file)
@@ -23,7 +23,7 @@ EstOutput Whittaker::getValues(vector<SharedRAbundVector*> 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) {