Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a Weibull distribution with the specified shape default scale.

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

Syntax

C#
public RandGenWeibull(
	double shape,
	int seed
)
Visual Basic (Declaration)
Public Sub New ( _
	shape As Double, _
	seed As Integer _
)
Visual C++
public:
RandGenWeibull(
	double shape, 
	int seed
)

Parameters

shape
Type: System..::.Double
The shape parameter for the Weibull distribution. Must be positive.
seed
Type: System..::.Int32
Random number seed.

Remarks

The default scale is 1.0. This value may be altered using the static DEFAULT_SCALE property.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the shape scale parameter is not positive.

See Also