package prbnmcn-dagger-stats

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Stats.Pdfs end
val poisson : lambda:float -> k:int -> float
val pi : float
val gaussian : mean:float -> std:float -> float -> float
val exponential : rate:float -> float -> float
val geometric : p:float -> int -> float
val uniform : Stats.Stats_intf.range -> float -> float
val binomial : p:float -> n:int -> k:int -> float

binomial_ln ~p ~n ~k gives the probability of having k successes in n independent Bernouilli trials with probability p.

  • raises Invalid_argument

    if p is not in the [0;1] interval, if n < 0, if k < 0 or if k > n.

val poisson_ln : lambda:float -> k:int -> Log_space.t
val gaussian_ln : mean:float -> std:float -> float -> Log_space.t
val exponential_ln : rate:float -> float -> Log_space.t
val geometric_ln : p:float -> int -> Log_space.t
val uniform_ln : Stats.Stats_intf.range -> float -> Log_space.t
val binomial_ln : p:float -> n:int -> k:int -> Log_space.t
val gamma_ln : shape:int -> scale:float -> float -> Log_space.t
OCaml

Innovation. Community. Security.