Click or drag to resize

HypergeometricSample(Random, Int32, Int32, Int32) Method

Samples a random variable.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int Sample(
	Random rnd,
	int population,
	int success,
	int draws
)

Parameters

rnd  Random
The random number generator to use.
population  Int32
The size of the population (N).
success  Int32
The number successes within the population (K, M).
draws  Int32
The number of draws without replacement (n).

Return Value

Int32

[Missing <returns> documentation for "M:Altaxo.Calc.Distributions.Hypergeometric.Sample(System.Random,System.Int32,System.Int32,System.Int32)"]

See Also