Up

module Analysis_result

: sig

A module internal to Core_bench. Please look at [root:Bench].

Results of a benchmark analysis, including all the regressions.

#
module Ci95 : sig
#
type 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
#
val ci95_rel_err : t -> estimate:float -> float * float
#
val bad_ci95 : t
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end
#
module Coefficient : sig
#
type t
#
val predictor : t -> Variable.t
#
val estimate : t -> float
#
val set_ci95 : t -> Ci95.t option -> unit
#
val ci95 : t -> Ci95.t option
#
val has_ci95 : t -> bool
#
val has_non_trivial_estimate : show_all_values:bool -> t -> responder:Variable.t -> bool
#
val create : predictor:Variable.t -> estimate:float -> ?ci95:Ci95.t -> unit -> t
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end
#
module Regression : sig
#
type t
#
val responder : t -> Variable.t
#
val r_square : t -> float option
#
val has_r_square : t -> bool
#
val coefficients : t -> Coefficient.t array
#
val key : t -> int
#
val predictors : t -> Variable.t array
#
val regression_name : t -> string option
#
val create : responder:Variable.t -> ?r_square:float -> coefficients:Coefficient.t array -> regression_name:string option -> unit -> t
end
#
type t
#
val name : t -> string
#
val sample_count : t -> int
#
val largest_run : t -> int
#
val regressions : t -> Regression.t array
#
val create : name:string -> sample_count:int -> largest_run:int -> regressions:Regression.t array -> t
#
val find_key : t -> int -> Regression.t option
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end