Click or drag to resize

NormalSample Method (RandomGenerator, Double, Double)

Static method which generate new sample of normal distribution with specified parameters.

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

Parameters

generator
Type: FinMath.StatisticsRandomGenerator
Base random number generator.
mean
Type: SystemDouble
Mean.
standardDeviation
Type: SystemDouble
Standard Deviation.

Return Value

Type: Double
Normal destributed sample.
See Also