Click or drag to resize

CategoricalSamples(Double) Method

Samples a categorically distributed random variable.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IEnumerable<int> Samples(
	double[] probabilityMass
)

Parameters

probabilityMass  Double
An array of nonnegative ratios. Not assumed to be normalized.

Return Value

IEnumerableInt32
random integers between 0 and the size of the categorical (exclusive).
See Also