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.UtilAssembly: 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
)
Public Shared Function GetNormalRandom (
average As Double,
standardDeviation As Double,
steps As Integer
) As Double
public:
static double GetNormalRandom(
double average,
double standardDeviation,
int steps
)
static member GetNormalRandom :
average : float *
standardDeviation : float *
steps : int -> float
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:
DoubleA random value
See Also