negBinomialInvCDF

fun negBinomialInvCDF(x: Double, r: Double, p: Double, recursive: Boolean = true): Int

Returns the quantile associated with the supplied probability, x assumes that distribution's range is {0,1, ...}

Return

the inverse CDF value

Parameters

x

The probability that the quantile is needed for

r

The number of successes parameter

p

The probability of success, must be in range (0,1)

recursive

true indicates that the recursive logarithmic algorithm should be used