Jump to content

Verify distribution uniformity/Naive: Difference between revisions

m
Line 99:
done;
Hashtbl.iter (fun v n -> Printf.printf "%d => %d\n%!" v n) h;
let target = 1.0 *. (float n) /. float (Hashtbl.length h) in
Hashtbl.iter (fun key value ->
if abs_float(float value -. target) > 0.01 *. delta *. (float n)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.