Click or drag to resize
Accord.NET (logo)

HypergeometricDistribution Constructor

Constructs a new Hypergeometric distribution. To build from the number of failures and succcesses like in R, please see FromSuccessCounts(Int32, Int32, Int32).

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public HypergeometricDistribution(
	[PositiveIntegerAttribute(1, 2147483647)] int populationSize,
	[NonnegativeIntegerAttribute(0, 2147483647)] int successes,
	[PositiveIntegerAttribute(1, 2147483647)] int samples
)
Request Example View Source

Parameters

populationSize
Type: SystemInt32
Size N of the population.
successes
Type: SystemInt32
The number m of successes in the population.
samples
Type: SystemInt32
The number n of samples drawn from the population.
See Also