Click or drag to resize

RandomNumberGeneratorGaussian Method (Int32, Double, Int32, Double, Double)

Draws a sample point from a Gaussian distribution having the specified parameters.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public void Gaussian(
	int sampleSize,
	double[] destinationArray,
	int destinationIndex,
	double mu,
	double sigma
)

Parameters

sampleSize
Type: SystemInt32
The sample size.
destinationArray
Type: SystemDouble
The destination array that receives the sampled data.
destinationIndex
Type: SystemInt32
The index in destinationArray at which storing begins.
mu
Type: SystemDouble
The location parameter.
sigma
Type: SystemDouble
The scale parameter.
Exceptions
ExceptionCondition
ArgumentNullExceptiondestinationArray is null.
ArgumentOutOfRangeExceptionsampleSize is not positive.
-or-
destinationIndex is negative.
-or-
sigma is not positive.
ArgumentException Parameter sampleSize must be less than or equal to the difference between the length of parameter destinationArray and destinationIndex.
See Also