]> git.donarmstrong.com Git - mothur.git/blobdiff - normalizesharedcommand.cpp
bug fixes
[mothur.git] / normalizesharedcommand.cpp
index c0e7c1f7f037cf1f0d87ab169408825a547c5982..d9405a5129dd238ee2992a2986289ffffd6ed167 100644 (file)
@@ -404,7 +404,7 @@ int NormalizeSharedCommand::normalize(vector<SharedRAbundVector*>& thisLookUp, o
                                                        
                                                int abund = thisLookUp[i]->getAbundance(j);
                                                        
-                                               float relabund = relabund = abund / (float) thisLookUp[i]->getNumSeqs();
+                                               float relabund = abund / (float) thisLookUp[i]->getNumSeqs();
                                                float newNorm = relabund * norm;
                                                
                                                //round to nearest int
@@ -478,7 +478,7 @@ int NormalizeSharedCommand::normalize(vector<SharedRAbundFloatVector*>& thisLook
                                        
                                        float abund = thisLookUp[i]->getAbundance(j);
                                        
-                                       float relabund = relabund = abund / (float) thisLookUp[i]->getNumSeqs();
+                                       float relabund = abund / (float) thisLookUp[i]->getNumSeqs();
                                        float newNorm = relabund * norm;
                                        
                                        thisLookUp[i]->set(j, newNorm, thisLookUp[i]->getGroup());