Click or drag to resize
HelperGetNormalRandom Method (Double, Double, Int32)
Returns random numbers according to an approximate normal distribution with an average and standard deviation set by the caller. This is done iteratively using the central limit theorem.

Namespace: Bio.Util
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public static double GetNormalRandom(
	double average,
	double standardDeviation,
	int steps
)

Parameters

average
Type: SystemDouble
Average result returned from calling the method
standardDeviation
Type: SystemDouble
Standard deviation applied to the normal curve
steps
Type: SystemInt32
The number of iterative steps to take in generating each number. The higher this number is, the closer to a true normal distribution the results will be, but the higher the computation cost. A value between 4 and 8 should be sufficient for most uses.

Return Value

Type: Double
A random value
See Also