fix test for old ocaml

This commit is contained in:
Simon Cruanes 2021-04-03 18:12:03 -04:00
parent 2440092eb5
commit 4f68b0fc37

View file

@ -22,7 +22,7 @@ let uniformity_test ?(size_hint=10) k rng st =
let confidence = 4. in
let std = confidence *. (sqrt (kf *. variance)) in
let predicate _key n acc =
let (<) (a : float) b = Stdlib.(<) a b in
let (<) (a : float) b = CCShims_.Stdlib.(<) a b in
acc && abs_float (average -. float_of_int n) < std in
Hashtbl.fold predicate histogram true