BernoulliDistribution Type

Provides generation of bernoulli distributed random numbers.

The bernoulli distribution generates only discrete numbers.
The implementation of the BernoulliDistribution type bases upon information presented on Wikipedia - Bernoulli distribution.

Constructors

Constructor Description

BernoulliDistribution()

Full Usage: BernoulliDistribution()

Initializes a new instance of the BernoulliDistribution class, using a StandardGenerator as underlying random number generator.

BernoulliDistribution(generator)

Full Usage: BernoulliDistribution(generator)

Parameters:

Initializes a new instance of the BernoulliDistribution class, using the specified Generator as underlying random number generator.

generator : Generator

A Generator object.

ArgumentNullException generator is NULL ( in Visual Basic).

BernoulliDistribution(probability)

Full Usage: BernoulliDistribution(probability)

Parameters:
    probability : float

probability : float

BernoulliDistribution(probability, generator)

Full Usage: BernoulliDistribution(probability, generator)

Parameters:

probability : float
generator : Generator

Instance members

Instance member Description

this.CDF

Full Usage: this.CDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Initialize

Full Usage: this.Initialize

Parameters:
    probability : float

probability : float

this.IsValidProbability

Full Usage: this.IsValidProbability

Parameters:
    value : float - The value to check.

Returns: bool if value is greater than or equal to 0.0, and less than or equal to 1.0; otherwise, .

Determines whether the specified value is valid for BernoulliDistribution.Probability.

value : float

The value to check.

Returns: bool

if value is greater than or equal to 0.0, and less than or equal to 1.0; otherwise, .

this.Maximum

Full Usage: this.Maximum

Returns: float
Modifiers: abstract

Gets the maximum possible value of bernoulli distributed random numbers.

Returns: float

this.Mean

Full Usage: this.Mean

Returns: float
Modifiers: abstract

Gets the mean value of bernoulli distributed random numbers.

Returns: float

this.Median

Full Usage: this.Median

Returns: float
Modifiers: abstract

Gets the median of bernoulli distributed random numbers.

Returns: float

this.Minimum

Full Usage: this.Minimum

Returns: float
Modifiers: abstract

Gets the minimum possible value of bernoulli distributed random numbers.

Returns: float

this.Mode

Full Usage: this.Mode

Returns: float[]
Modifiers: abstract

Gets the mode of bernoulli distributed random numbers.

Returns: float[]

this.Next

Full Usage: this.Next

Returns: int A bernoulli distributed 32-bit signed integer.

Returns a bernoulli distributed random number.

Returns: int

A bernoulli distributed 32-bit signed integer.

this.NextDouble

Full Usage: this.NextDouble

Returns: float A bernoulli distributed double-precision floating point number.
Modifiers: abstract

Returns a bernoulli distributed floating point random number.

Returns: float

A bernoulli distributed double-precision floating point number.

this.PDF

Full Usage: this.PDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Probability

Full Usage: this.Probability

Gets or sets the parameter alpha which is used for generation of bernoulli distributed random numbers.

Call BernoulliDistribution.IsValidProbability to determine whether a value is valid and therefor assignable.

this.Variance

Full Usage: this.Variance

Returns: float
Modifiers: abstract

Gets the variance of bernoulli distributed random numbers.

Returns: float

Static members

Static member Description

BernoulliDistribution.CDF(x, p)

Full Usage: BernoulliDistribution.CDF(x, p)

Parameters:
    x : float
    p : float

Returns: float

x : float
p : float
Returns: float

BernoulliDistribution.PDF(x, p)

Full Usage: BernoulliDistribution.PDF(x, p)

Parameters:
    x : float
    p : float

Returns: float

x : float
p : float
Returns: float