]> git.donarmstrong.com Git - mothur.git/blobdiff - slayer.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / slayer.cpp
index 95734c74808a3addd63b86ba8151c1f3d7bf039d..8e9eb56c8e55bddd9405cc790759c45f2ed7dc12 100644 (file)
@@ -45,7 +45,7 @@ string Slayer::getResults(Sequence* query, vector<Sequence*> refSeqs) {
                                                
                                                float snpRateLeft = numSNPSLeft / (float) winSizeLeft;
                                                float snpRateRight = numSNPSRight / (float) winSizeRight;
-                                               float logR = log(snpRateLeft / snpRateRight) / log(2);
+                                               float logR = log(snpRateLeft / snpRateRight) / log(2.0);
                                                
                                                // do not accept excess snp ratio on either side of the break
                                                if (abs(logR) < 1 ) {