Provides generation of geometric distributed random numbers. This is variant A, which denotes the probability that with a number of n trials one has the first success (so the lowest value is 1).
The geometric distribution generates only discrete numbers.
The implementation of the GeometricDistribution type bases upon information presented on
Wikipedia - Geometric distribution
and the implementation in the
Communication Networks Class Library.
Please note that the geometric distribution provided by Mathematica 5.1
is variant_B: the probability that n failed trials occur before first success (so the lowest value is 0 there).
Constructor | Description | ||
Full Usage:
GeometricDistribution()
|
Initializes a new instance of the GeometricDistribution class, using a StandardGenerator as underlying random number generator. |
||
|
Initializes a new instance of the GeometricDistribution class, using the specified Generator as underlying random number generator.
|
||
Full Usage:
GeometricDistribution(probability)
Parameters:
float
|
|
||
Full Usage:
GeometricDistribution(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 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 geometric distributed random numbers.
|
Full Usage:
this.Mean
Returns: float
Modifiers: abstract |
Gets the mean value of geometric distributed random numbers.
|
Full Usage:
this.Median
Returns: float
Modifiers: abstract |
Gets the median of geometric distributed random numbers.
|
Full Usage:
this.Minimum
Returns: float
Modifiers: abstract |
Gets the minimum possible value of geometric distributed random numbers.
|
Full Usage:
this.Mode
Returns: float[]
Modifiers: abstract |
Gets the mode of geometric distributed random numbers.
|
Full Usage:
this.Next
Returns: int
A geometric distributed 32-bit signed integer.
|
Returns a geometric distributed random number.
|
Full Usage:
this.NextDouble
Returns: float
A geometric distributed double-precision floating point number.
Modifiers: abstract |
Returns a geometric 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 geometric distributed random numbers. Call GeometricDistribution.IsValidProbability to determine whether a value is valid and therefor assignable. |
Full Usage:
this.Variance
Returns: float
Modifiers: abstract |
Gets the variance of geometric distributed random numbers.
|
Static member | Description |
Full Usage:
GeometricDistribution.CDF(x, p)
Parameters:
float
p : float
Returns: float
|
|
Full Usage:
GeometricDistribution.PDF(x, p)
Parameters:
float
p : float
Returns: float
|
|