Click or drag to resize

CategoricalInvCDFWithCumulativeDistribution Method

Computes the inverse of the cumulative distribution function (InvCDF) for the distribution at the given probability.

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

Parameters

cdfUnnormalized  Double
An array corresponding to a CDF for a categorical distribution. Not assumed to be normalized.
probability  Double
A real number between 0 and 1.

Return Value

Int32
An integer between 0 and the size of the categorical (exclusive), that corresponds to the inverse CDF for the given probability.
See Also