Constructs a random number generator for a Gaussian distribution using the specified distribution parameters.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public FloatRandomGaussianDistribution(
	float mean,
	float sigma,
	FloatRandomGaussianDistribution..::.GenerationMethod method
)
Visual Basic (Declaration)
Public Sub New ( _
	mean As Single, _
	sigma As Single, _
	method As FloatRandomGaussianDistribution..::.GenerationMethod _
)
Visual C++
public:
FloatRandomGaussianDistribution(
	float mean, 
	float sigma, 
	FloatRandomGaussianDistribution..::.GenerationMethod method
)

Parameters

mean
Type: System..::.Single
The mean.
sigma
Type: System..::.Single
The standard deviation.
method
Type: CenterSpace.NMath.Core..::.FloatRandomGaussianDistribution..::.GenerationMethod
The generation method to use.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if sigma is less than or equal to 0.

See Also