Returns a single random sample from a lognormal distribution
with the specified parameters.
Namespace: Extreme.Statistics.DistributionsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static double Sample(
Random random,
double mean,
double standardDeviation
)
Public Shared Function Sample (
random As Random,
mean As Double,
standardDeviation As Double
) As Double
public:
static double Sample(
Random^ random,
double mean,
double standardDeviation
)
static member Sample :
random : Random *
mean : float *
standardDeviation : float -> float
Parameters
- random
- Type: SystemRandom
The Random
derived random number generator used to generate
the sample. - mean
- Type: SystemDouble
Mean of the underlying normal distribution. - standardDeviation
- Type: SystemDouble
Standard deviation of the underlying normal distribution.
Return Value
Type:
DoubleA double-precision floating-point sample from
the lognormal distribution with the specified parameters.
This method is useful when only a single random sample
is required, or if the parameters of the distribution
change often. To obtain a large number of samples from a
distribution with identical parameters, create an
instance of the class and call the Sample(Random, Double, Double)
method repeatedly.
Numerical Libraries
Supported in: 6.0
Reference