PoissonSample Method (RandomGenerator, Double)
|
Static method which generates new sample of Poisson distribution variate with specified lambda.
Namespace:
FinMath.Statistics.Distributions
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public static int Sample(
RandomGenerator generator,
double lambda
)
Parameters
- generator
- Type: FinMath.StatisticsRandomGenerator
Base random number generator. - lambda
- Type: SystemDouble
Distribution parameter. Must be positive.
Return Value
Type:
Int32Random variable sample.
See Also