Click or drag to resize

CategoricalSampleWithCumulativeDistribution(Double) Method

Samples one categorical distributed random variable; also known as the Discrete distribution.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int SampleWithCumulativeDistribution(
	double[] cdfUnnormalized
)

Parameters

cdfUnnormalized  Double
An array of the cumulative distribution. Not assumed to be normalized.

Return Value

Int32
One random integer between 0 and the size of the categorical (exclusive).
See Also