package core_bench

  1. Overview
  2. Docs

95% confidence interval, stored as (left endpoint, right endpoint)

type t
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val left_endpoint : t -> float
val right_endpoint : t -> float
val create : left_endpoint:float -> right_endpoint:float -> t
val ci95_abs_err : t -> estimate:float -> float * float

95% confidence interval expressed in (absolute) error form. E.g., if estimate = 50. and confidence95 = (49., 52.), then confidence95_abs_err returns (-1., 2.).

val ci95_rel_err : t -> estimate:float -> float * float

95% confidence interval in relative error form (with 2.5 = 250%, etc.). E.g., if estimate = 50. and confidence95 = (49., 52.), then confidence95_rel_err returns (-0.02, 0.04).

val bad_ci95 : t