Bernoulli Type

Bernoulli distribution.

Static members

Static member Description

Bernoulli.CDF(p) (x)

Full Usage: Bernoulli.CDF(p) (x)

Parameters:
    p : float -
    x : float -

Returns: float

Computes the cumulative distribution function. P(X >= k)

p : float

x : float

Returns: float

Example

Bernoulli.CheckParam(p)

Full Usage: Bernoulli.CheckParam(p)

Parameters:
    p : float

p : float

Bernoulli.Estimate(observations, ?weights)

Full Usage: Bernoulli.Estimate(observations, ?weights)

Parameters:
    observations : float[]
    ?weights : float[]

Returns: DiscreteDistribution<float, int>

Estimates a new Bernoulli distribution from a given set of observations.

observations : float[]
?weights : float[]
Returns: DiscreteDistribution<float, int>

Bernoulli.Fit(observations, ?weights)

Full Usage: Bernoulli.Fit(observations, ?weights)

Parameters:
    observations : float[]
    ?weights : float[]

Returns: float

Fits the underlying distribution to a given set of observations.

observations : float[]
?weights : float[]
Returns: float

Bernoulli.Init(p)

Full Usage: Bernoulli.Init(p)

Parameters:
    p : float -

Returns: DiscreteDistribution<float, int>

Initializes a uniform distribution

p : float

Returns: DiscreteDistribution<float, int>

Example

Bernoulli.InvCDF(p) (x)

Full Usage: Bernoulli.InvCDF(p) (x)

Parameters:
    p : float -
    x : 'a -

Returns: 'b

Computes the inverse cumulative distribution function (quantile function).

p : float

x : 'a

Returns: 'b

Example

Bernoulli.Mean(p)

Full Usage: Bernoulli.Mean(p)

Parameters:
    p : float -

Returns: float

Computes the mean.

p : float

Returns: float

Example

Bernoulli.Mode(p)

Full Usage: Bernoulli.Mode(p)

Parameters:
    p : float -

Returns: int

Computes the mode.

p : float

Returns: int

Example

Bernoulli.PMF(p) (x)

Full Usage: Bernoulli.PMF(p) (x)

Parameters:
    p : float -
    x : int -

Returns: float

Computes the probability density function.

p : float

x : int

Returns: float

Example

Bernoulli.Sample(p)

Full Usage: Bernoulli.Sample(p)

Parameters:
    p : float -

Returns: int

Produces a random sample using the current random number generator (from GetSampleGenerator()).

p : float

Returns: int

Example

Bernoulli.StandardDeviation(p)

Full Usage: Bernoulli.StandardDeviation(p)

Parameters:
    p : float -

Returns: float

Computes the standard deviation.

p : float

Returns: float

Example

Bernoulli.Support(p)

Full Usage: Bernoulli.Support(p)

Parameters:
    p : float -

Returns: Interval<int>

Returns the support of the bernoulli distribution: {0, 1}.

p : float

Returns: Interval<int>

Example

Bernoulli.ToString(p)

Full Usage: Bernoulli.ToString(p)

Parameters:
    p : float -

Returns: string

A string representation of the distribution.

p : float

Returns: string

Example

Bernoulli.Variance(p)

Full Usage: Bernoulli.Variance(p)

Parameters:
    p : float -

Returns: float

Computes the variance.

p : float

Returns: float

Example