Trait probability::distribution::Distribution[][src]

pub trait Distribution {
    type Value;
    fn distribution(&self, _: f64) -> f64;
}

A distribution.

Associated Types

type Value[src]

The type of outcomes.

Loading content...

Required methods

fn distribution(&self, _: f64) -> f64[src]

Compute the cumulative distribution function.

Loading content...

Implementors

impl Distribution for Bernoulli[src]

type Value = u8

impl Distribution for Beta[src]

type Value = f64

impl Distribution for Binomial[src]

type Value = usize

fn distribution(&self, x: f64) -> f64[src]

Compute the cumulative distribution function.

The implementation is based on the incomplete beta function.

impl Distribution for Categorical[src]

type Value = usize

impl Distribution for Exponential[src]

type Value = f64

impl Distribution for Gamma[src]

type Value = f64

impl Distribution for Gaussian[src]

type Value = f64

impl Distribution for Laplace[src]

type Value = f64

impl Distribution for Logistic[src]

type Value = f64

impl Distribution for Lognormal[src]

type Value = f64

impl Distribution for Pert[src]

type Value = f64

impl Distribution for Triangular[src]

type Value = f64

impl Distribution for Uniform[src]

type Value = f64

Loading content...