mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
fix test for old ocaml
This commit is contained in:
parent
2440092eb5
commit
4f68b0fc37
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue