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

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

Syntax

C#
public IntRandomHypergeometricDistribution(
	int lotSize,
	int samplingSize,
	int markedElements
)
Visual Basic (Declaration)
Public Sub New ( _
	lotSize As Integer, _
	samplingSize As Integer, _
	markedElements As Integer _
)
Visual C++
public:
IntRandomHypergeometricDistribution(
	int lotSize, 
	int samplingSize, 
	int markedElements
)

Parameters

lotSize
Type: System..::.Int32
The lot size.
samplingSize
Type: System..::.Int32
Size of sampling without replacement.
markedElements
Type: System..::.Int32
Number of marked elements.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the lot size is less than 0, or the sampling size or number of marked elements is greater than the lot size.

See Also