Probabilities::NegBinomCDFInv Function

Overload List

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

Overload 1: double NegBinomCDFInv(double y, double R, double p);

Negative binomial distribution point percent function (PPF).

#NameTypeDescription
1ydoubleProbability, real positive value on closed interval [0,1].
2RdoubleDefines number of successes, positive integer.
3pdoubleDefines probability of each trial, real value on closed interval [0,1].

Returns: 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
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler

Overload 2: void NegBinomCDFInv(TDenseMtxVec *Y, double R, double P, TDenseMtxVec *Res);

Negative binomial distribution PPF (vectorized).

#NameTypeDescription
1YTDenseMtxVec *Defines distribution probabilities, real vector or matrix with values within closed interval [0,1].
2RdoubleDefines number of successes, positive integer.
3PdoubleDefines probability of each trial, real value on closed interval [0,1].
4ResTDenseMtxVec *After 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.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler