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.
Constructor | Description | ||
Full Usage:
BernoulliDistribution()
|
Initializes a new instance of the BernoulliDistribution class, using a StandardGenerator as underlying random number generator. |
||
|
Initializes a new instance of the BernoulliDistribution class, using the specified Generator as underlying random number generator.
|
||
Full Usage:
BernoulliDistribution(probability)
Parameters:
float
|
|
||
Full Usage:
BernoulliDistribution(probability, generator)
Parameters:
float
generator : Generator
|
|
Instance member | Description |
Full Usage:
this.CDF
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.Initialize
Parameters:
float
|
|
Full Usage:
this.IsValidProbability
Parameters:
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, .
|
|
Full Usage:
this.Maximum
Returns: float
Modifiers: abstract |
Gets the maximum possible value of bernoulli distributed random numbers.
|
Full Usage:
this.Mean
Returns: float
Modifiers: abstract |
Gets the mean value of bernoulli distributed random numbers.
|
Full Usage:
this.Median
Returns: float
Modifiers: abstract |
Gets the median of bernoulli distributed random numbers.
|
Full Usage:
this.Minimum
Returns: float
Modifiers: abstract |
Gets the minimum possible value of bernoulli distributed random numbers.
|
Full Usage:
this.Mode
Returns: float[]
Modifiers: abstract |
Gets the mode of bernoulli distributed random numbers.
|
Full Usage:
this.Next
Returns: int
A bernoulli distributed 32-bit signed integer.
|
Returns a bernoulli distributed random number.
|
Full Usage:
this.NextDouble
Returns: float
A bernoulli distributed double-precision floating point number.
Modifiers: abstract |
Returns a bernoulli distributed floating point random number.
|
Full Usage:
this.PDF
Parameters:
float
Returns: float
Modifiers: abstract |
|
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. |
Full Usage:
this.Variance
Returns: float
Modifiers: abstract |
Gets the variance of bernoulli distributed random numbers.
|
Static member | Description |
Full Usage:
BernoulliDistribution.CDF(x, p)
Parameters:
float
p : float
Returns: float
|
|
Full Usage:
BernoulliDistribution.PDF(x, p)
Parameters:
float
p : float
Returns: float
|
|