Click or drag to resize

ExponentialSample Method (RandomGenerator, Double)

Static method which generates new sample of exponential distribution variate with specified rate.

Namespace:  FinMath.Statistics.Distributions
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static double Sample(
	RandomGenerator generator,
	double rate
)

Parameters

generator
Type: FinMath.StatisticsRandomGenerator
Base random number generator.
rate
Type: SystemDouble
Rate parameter, or inverse scale. Must be positive.

Return Value

Type: Double
Random variable sample.
See Also