Probabilities.NegBinomCDFInv Method

Overload List

#SignatureDescription
1void NegBinomCDFInv(TDenseMtxVec Y, Double R, Double P, TDenseMtxVec Res)Negative binomial distribution PPF (vectorized).
2Double NegBinomCDFInv(Double y, Double R, Double p)Negative binomial distribution point percent function (PPF).

Overload 1: void NegBinomCDFInv(TDenseMtxVec Y, Double R, Double P, TDenseMtxVec Res)

Negative binomial distribution PPF (vectorized).

#NameDescription
1YDefines distribution probabilities, real vector or matrix with values within closed interval [0,1].
2RDefines number of successes, positive integer.
3PDefines probability of each trial, real value on closed interval [0,1].
4ResAfter calculation stores the PPF calculated from Y, R and p. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of P.

Result: stored in self (calling object)

Overload 2: Double NegBinomCDFInv(Double y, Double R, Double p)

Negative binomial distribution point percent function (PPF).

#NameDescription
1yProbability, real positive value on closed interval [0,1].
2RDefines number of successes, positive integer.
3pDefines probability of each trial, real value on closed interval [0,1].

Returns: Double - the Negative binomial distribution point percent function (PPF) for probability y using the parameters R (number of success) and p (probability of success). Probabilities p and y must lie on the interval [0,1], and R must be greater or equal than one, otherwise the result is NAN.

Remarks:

The result of NegBinomCDFinv is the smallest integer such that the negative binomial CDF evaluated at result equals or exceeds y. If the function returns NAN, either one of the inputs was NAN, or total loss of precision was detected.

See Also: Probabilities.NegBinomPDF, Probabilities.NegBinomCDF