CategoricalInvCDFWithCumulativeDistribution Method |
Computes the inverse of the cumulative distribution function (InvCDF) for the distribution
at the given probability.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
Int32An integer between 0 and the size of the categorical (exclusive), that corresponds to the inverse CDF for the given probability.
See Also