Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void NegBinomCDFInv(TDenseMtxVec Y, Double R, Double P, TDenseMtxVec Res) | Negative binomial distribution PPF (vectorized). |
| 2 | Double 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).
| # | Name | Description |
|---|---|---|
| 1 | Y | Defines distribution probabilities, real vector or matrix with values within closed interval [0,1]. |
| 2 | R | Defines number of successes, positive integer. |
| 3 | P | Defines probability of each trial, real value on closed interval [0,1]. |
| 4 | Res | 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. |
Result: stored in self (calling object)
Overload 2: Double NegBinomCDFInv(Double y, Double R, Double p)
Negative binomial distribution point percent function (PPF).
| # | Name | Description |
|---|---|---|
| 1 | y | Probability, real positive value on closed interval [0,1]. |
| 2 | R | Defines number of successes, positive integer. |
| 3 | p | Defines 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.