Commits

Bryan O'Sullivan committed f581fad

Fix a nasty numerical bug in outlier analysis.

  • Participants
  • Parent commits d4c9f14

Comments (0)

Files changed (1)

File Criterion/Analysis.hs

         k1    = σb2 - a * σg2 + ad
         k0    = -a * ad
         ad    = a * d
-        d     = k * 2 where k = µa - x
+        d     = k * k where k = µa - x
         det   = k1 * k1 - 4 * σg2 * k0
 
 -- | Count the total number of outliers in a sample.