]> git.donarmstrong.com Git - mothur.git/blobdiff - shhhercommand.cpp
added calcs to tree.shared. working on remove.rare command
[mothur.git] / shhhercommand.cpp
index d1732cd0dc37ba3db1edcfdb3835413d3ddaf559..63df681923c0a91e87c3507f861fcd519253f332 100644 (file)
@@ -838,10 +838,10 @@ void ShhherCommand::getJointLookUp(){
                for(int i=0;i<NUMBINS;i++){
                        for(int j=0;j<NUMBINS;j++){             
                                
-                               float minSum = 10000000000;
+                               double minSum = 10000000000;
                                
                                for(int k=0;k<HOMOPS;k++){
-                                       float sum = singleLookUp[k * NUMBINS + i] + singleLookUp[k * NUMBINS + j];
+                                       double sum = singleLookUp[k * NUMBINS + i] + singleLookUp[k * NUMBINS + j];
                                        
                                        if(sum < minSum)        {       minSum = sum;           }
                                }       
@@ -859,7 +859,7 @@ void ShhherCommand::getJointLookUp(){
 
 float ShhherCommand::getProbIntensity(int intIntensity){                          
        try{
-               float minNegLogProb = 10000000000; 
+               double minNegLogProb = 10000000000; 
                
                for(int i=0;i<HOMOPS;i++){//loop signal strength
                        float negLogProb = singleLookUp[i * NUMBINS + intIntensity];