DiscreteUniformDistribution.InverseDistributionFunction Method

Returns the inverse of the distribution function.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public override int InverseDistributionFunction(
	double probability
)

Parameters

probability  Double
A real number between 0 and 1.

Return Value

Int32
The smallest integer whose cumulative probability is at least probability. At zero, the base implementation returns MinValue.

Exceptions

ArgumentOutOfRangeException

probability is less than zero, greater than 1, or NaN.

See Also