Click or drag to resize

SimpleRandomSampling Constructor

Initializes a new instance of the SimpleRandomSampling class.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public SimpleRandomSampling(
	int populationSize,
	int sampleSize
)

Parameters

populationSize
Type: SystemInt32
The size of the sampled population.
sampleSize
Type: SystemInt32
The size of the samples to draw.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionpopulationSize is less than 2.
-or-
sampleSize is not positive.
ArgumentExceptionsampleSize is not less than populationSize.
See Also