Module type Empirical.S
val from_dist : ?n:int -> 'a Ppl.Dist.dist -> 'a tCreate a empirical distribution from a distribution object, using n samples to approximate it
val empty : 'a tCreate an empty distribution
val get_num : 'a t -> 'a -> intGet the numer of samples with the value
val get_prob : 'a t -> 'a -> floatGet the probability of a particular value
val to_pdf : 'a t -> 'a -> floatCreate a pdf function
val print_map : (module Core.Pretty_printer.S with type t = 'a) -> 'a t -> unitprint the entire distribution
val to_arr : 'a t -> ('a * int) arrayGet array of samples
val support : 'a t -> 'a listGet the set of values for the distribution