]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedjabund.cpp
This contains Pat's bug fixes and updates. It represents mothur v.1.3.0
[mothur.git] / sharedjabund.cpp
index b969e24f4286e794894b04c9897f49a593f67317..bedec32843323ac0a19248010060e430a7c097da 100644 (file)
@@ -21,7 +21,7 @@ EstOutput JAbund::getValues(vector<SharedRAbundVector*> shared) {
                
                //UVest[0] is Uest UVest[1] is Vest
                data[0] = (UVest[0] * UVest[1]) / ((float)(UVest[0] + UVest[1] - (UVest[0] * UVest[1])));
-               
+               if(data[0] > 1){data[0] = 1;    }
                if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
                
                return data;