package owl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. df : A.arr;
}

Type definition of a specific distribution

val make : df:A.arr -> sigma:'a -> t

Make a distribution of the given parameters.

val sample : t -> int -> A.arr

Sample a distribution of the given parameters.

val pdf : t -> A.arr -> A.arr

Probability density/mass function of the distribution.

val logpdf : t -> A.arr -> A.arr

Logarithm of the probability density/mass function of the distribution.

val cdf : t -> A.arr -> A.arr

Cumulative density/mass function of the distribution.

val logcdf : t -> A.arr -> A.arr

Logarithm of the cumulative density/mass function of the distribution.

val ppf : t -> A.arr -> A.arr

Percentile function of the distribution.

val sf : t -> A.arr -> A.arr

Survival function of the distribution.

val logsf : t -> A.arr -> A.arr

Logarithm of the survival function of the distribution.

val isf : t -> A.arr -> A.arr

Inverse survival function of the distribution.

OCaml

Innovation. Community. Security.