Provides generation of normal distributed random numbers.
The implementation of the NormalDistribution type bases upon information presented on Wikipedia - Normal distribution and the implementation in the Communication Networks Class Library.
Return normal (Gaussian) distributed random deviates with mean "m" and standard deviation "s" according to the density: 2 1 (x-m) p (x) dx = ------------ exp( - ------- ) dx m,s sqrt(2 pi) s 2 s*s
Constructor | Description | ||
Full Usage:
NormalDistribution()
|
Initializes a new instance of the NormalDistribution class, using a StandardGenerator as underlying random number generator. |
||
|
Initializes a new instance of the NormalDistribution class, using the specified Generator as underlying random number generator.
|
||
Full Usage:
NormalDistribution(mu, sigma)
Parameters:
float
-
Mean value.
sigma : float
-
Standard deviation.
|
Initializes a new instance of the NormalDistribution class, using the Distribution.DefaultGenerator as underlying random number generator.
|
||
|
Initializes a new instance of the NormalDistribution 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.Initialize
Parameters:
float
sigma : float
|
|
Full Usage:
this.IsValidMu
Parameters:
float
-
The value to check.
Returns: bool
.
|
|
Full Usage:
this.IsValidSigma
Parameters:
float
-
The value to check.
Returns: bool
if value is greater than 0.0; otherwise, .
|
|
Full Usage:
this.Maximum
Returns: float
Modifiers: abstract |
Gets the maximum possible value of normal distributed random numbers.
|
Full Usage:
this.Mean
Returns: float
Modifiers: abstract |
Gets the mean value of normal distributed random numbers.
|
Full Usage:
this.Median
Returns: float
Modifiers: abstract |
Gets the median of normal distributed random numbers.
|
Full Usage:
this.Minimum
Returns: float
Modifiers: abstract |
Gets the minimum possible value of normal distributed random numbers.
|
Full Usage:
this.Mode
Returns: float[]
Modifiers: abstract |
Gets the mode of normal distributed random numbers.
|
Full Usage:
this.Mu
|
Gets or sets the parameter mu which is used for generation of normal distributed random numbers. Call NormalDistribution.IsValidMu to determine whether a value is valid and therefor assignable. |
Full Usage:
this.NextDouble
Returns: float
A normal distributed double-precision floating point number.
Modifiers: abstract |
Returns a normal distributed floating point random number.
|
Full Usage:
this.PDF
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.Quantile
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.Sigma
|
Gets or sets the parameter sigma which is used for generation of normal distributed random numbers. Call NormalDistribution.IsValidSigma to determine whether a value is valid and therefor assignable. |
Full Usage:
this.Variance
Returns: float
Modifiers: abstract |
Gets the variance of normal distributed random numbers.
|
Static member | Description |
Full Usage:
NormalDistribution.CDF(z, m, s)
Parameters:
float
m : float
s : float
Returns: float
|
|
Full Usage:
NormalDistribution.PDF(z, m, s)
Parameters:
float
m : float
s : float
Returns: float
|
|
Full Usage:
NormalDistribution.Quantile(p, m, s)
Parameters:
float
m : float
s : float
Returns: float
|
|