LaplaceSample Method (RandomGenerator, Double, Double)
|
Static method which generates new sample of Laplace distribution with specified parameters.
Namespace:
FinMath.Statistics.Distributions
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public static double Sample(
RandomGenerator generator,
double mean,
double scale
)
Parameters
- generator
- Type: FinMath.StatisticsRandomGenerator
Base random number generator. - mean
- Type: SystemDouble
Mean. - scale
- Type: SystemDouble
Scale, must be positive.
Return Value
Type:
DoubleRandom variable sample.
See Also