]> git.donarmstrong.com Git - mothur.git/blobdiff - amovacommand.cpp
changes while testing
[mothur.git] / amovacommand.cpp
index a78aafcbd92a344420c29598f6cac4456404a890..492a096f76cc1de12514731f66514e8d632c0c5f 100644 (file)
@@ -307,7 +307,7 @@ double AmovaCommand::runAMOVA(ofstream& AMOVAFile, map<string, vector<int> > gro
                for(int i=0;i<iters;i++){
                        map<string, vector<int> > randomizedGroup = getRandomizedGroups(groupSampleMap);
                        double ssWithinRand = calcSSWithin(randomizedGroup);
-                       if(ssWithinRand < ssWithinOrig){        counter++;      }
+                       if(ssWithinRand <= ssWithinOrig){       counter++;      }
                }
                
                double pValue = (double)counter / (double) iters;