Provides generation of lognormal distributed random numbers.
The implementation of the LognormalDistribution type bases upon information presented on Wikipedia - Lognormal Distribution and the implementation in the Boost Random Number Library.
Return log-normal distributed random deviates
with given mean and standard deviation stdev
according to the density function:
2
1 (ln x - m)
p (x) dx = -------------- exp( - ------------ ) dx for x > 0
m,s sqrt(2 pi x) s 2
2 s
= 0 otherwise
where m and s are related to the arguments mean and stdev by:
2
mean
m = ln ( --------------------- )
2 2
sqrt( stdev + mean )
2 2
stdev + mean
s = sqrt( ln( -------------- ) )
2
mean
| Constructor | Description | ||
Full Usage:
LognormalDistribution()
|
Initializes a new instance of the LognormalDistribution class, using a StandardGenerator as underlying random number generator. |
||
|
|
||
Full Usage:
LognormalDistribution(mu, sigma)
Parameters:
float
sigma : float
|
|
||
|
Initializes a new instance of the LognormalDistribution 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 or equal to 0.0; otherwise, .
|
|
Full Usage:
this.Maximum
Returns: float
Modifiers: abstract |
Gets the maximum possible value of lognormal distributed random numbers.
|
Full Usage:
this.Mean
Returns: float
Modifiers: abstract |
Gets the mean value of lognormal distributed random numbers.
|
Full Usage:
this.Median
Returns: float
Modifiers: abstract |
Gets the median of lognormal distributed random numbers.
|
Full Usage:
this.Minimum
Returns: float
Modifiers: abstract |
Gets the minimum possible value of lognormal distributed random numbers.
|
Full Usage:
this.Mode
Returns: float[]
Modifiers: abstract |
Gets the mode of lognormal distributed random numbers.
|
Full Usage:
this.Mu
|
Gets or sets the parameter mu which is used for generation of lognormal distributed random numbers. Call LognormalDistribution.IsValidMu to determine whether a value is valid and therefor assignable. |
Full Usage:
this.NextDouble
Returns: float
A lognormal distributed double-precision floating point number.
Modifiers: abstract |
Returns a lognormal 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 lognormal distributed random numbers. Call LognormalDistribution.IsValidSigma to determine whether a value is valid and therefor assignable. |
Full Usage:
this.Variance
Returns: float
Modifiers: abstract |
Gets the variance of lognormal distributed random numbers.
|
| Static member | Description |
Full Usage:
LognormalDistribution.CDF(z, m, s)
Parameters:
float
m : float
s : float
Returns: float
|
|
Full Usage:
LognormalDistribution.PDF(z, m, s)
Parameters:
float
m : float
s : float
Returns: float
|
|
Full Usage:
LognormalDistribution.Quantile(p, m, s)
Parameters:
float
m : float
s : float
Returns: float
|
|