SimpleRandomSampling Constructor

Initializes a new instance of the SimpleRandomSampling class.

Definition

Namespace: Novacta.Analytics
Assembly: Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.1.0+428f3840cfab98dda567bb0ed350b302533e273a
C#
public SimpleRandomSampling(
	int populationSize,
	int sampleSize
)

Parameters

populationSize  Int32
The size of the sampled population.
sampleSize  Int32
The size of the samples to draw.

Exceptions

ArgumentOutOfRangeExceptionpopulationSize is less than 2.
-or-
sampleSize is not positive.
ArgumentExceptionsampleSize is not less than populationSize.

See Also