Provides generation of discrete uniformly distributed random numbers.
The discrete uniform distribution generates only discrete numbers.
The implementation of the DiscreteUniformDistribution type bases upon information presented on
Wikipedia - Uniform distribution (discrete).
Constructor | Description | ||
Full Usage:
DiscreteUniformDistribution()
|
|
||
|
|
||
Full Usage:
DiscreteUniformDistribution(lower, upper)
Parameters:
int
upper : int
|
Initializes a new instance of the DiscreteUniformDistribution class, using a StandardGenerator as underlying random number generator.
|
||
|
Initializes a new instance of the DiscreteUniformDistribution class, using the specified Generator as underlying random number generator.
|
Instance member | Description |
Full Usage:
this.CDF
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.IsValidLowerBound
Parameters:
int
-
The value to check.
Returns: bool
if value is less than or equal to DiscreteUniformDistribution.UpperBound; otherwise, .
|
Determines whether the specified value is valid for parameter DiscreteUniformDistribution.LowerBound.
|
Full Usage:
this.IsValidUpperBound
Parameters:
int
-
The value to check.
Returns: bool
if value is greater than or equal to DiscreteUniformDistribution.LowerBound, and less than
Int32.MaxValue; otherwise, .
|
Determines whether the specified value is valid for parameter DiscreteUniformDistribution.UpperBound.
|
Full Usage:
this.LowerBound
Returns: int
|
Gets or sets the parameter lower bound which is used for generation of uniformly distributed random numbers.
|
Full Usage:
this.Maximum
Returns: float
Modifiers: abstract |
Gets the maximum possible value of uniformly distributed random numbers.
|
Full Usage:
this.Mean
Returns: float
Modifiers: abstract |
Gets the mean value of the uniformly distributed random numbers.
|
Full Usage:
this.Median
Returns: float
Modifiers: abstract |
Gets the median of uniformly distributed random numbers.
|
Full Usage:
this.Minimum
Returns: float
Modifiers: abstract |
Gets the minimum possible value of uniformly distributed random numbers.
|
Full Usage:
this.Mode
Returns: float[]
Modifiers: abstract |
Gets the mode of the uniformly distributed random numbers.
|
Full Usage:
this.Next
Returns: int
A geometric distributed 32-bit signed integer.
|
Returns a uniformly distributed random number.
|
Full Usage:
this.NextDouble
Returns: float
A uniformly distributed double-precision floating point number.
Modifiers: abstract |
Returns a uniformly distributed floating point random number.
|
Full Usage:
this.PDF
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.UpperBound
Returns: int
|
Gets or sets the upper boundary which is used for generation of uniformly distributed random numbers.
|
Full Usage:
this.Variance
Returns: float
Modifiers: abstract |
Gets the variance of uniformly distributed random numbers.
|
Static member | Description |
Full Usage:
DiscreteUniformDistribution.CDF(x, low, high)
Parameters:
float
low : float
high : float
Returns: float
|
|
Full Usage:
DiscreteUniformDistribution.PDF(x, low, high)
Parameters:
float
low : float
high : float
Returns: float
|
|