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

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

Syntax

C#
public FloatRandomGammaDistribution(
	float shape,
	float displacement,
	float scale,
	FloatRandomGammaDistribution..::.GenerationMethod method
)
Visual Basic (Declaration)
Public Sub New ( _
	shape As Single, _
	displacement As Single, _
	scale As Single, _
	method As FloatRandomGammaDistribution..::.GenerationMethod _
)
Visual C++
public:
FloatRandomGammaDistribution(
	float shape, 
	float displacement, 
	float scale, 
	FloatRandomGammaDistribution..::.GenerationMethod method
)

Parameters

shape
Type: System..::.Single
Shape.
displacement
Type: System..::.Single
Displacement.
scale
Type: System..::.Single
Scale factor.
method
Type: CenterSpace.NMath.Core..::.FloatRandomGammaDistribution..::.GenerationMethod
The generation method to use.

Remarks

If shape=1, the gamma distribution reduces to the exponential distribution.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if shape or scale factor is not greater than 0.

See Also