negBinomialCCDF

fun negBinomialCCDF(j: Int, r: Double, p: Double, recursive: Boolean = true): Double

Allows static computation of complementary cdf function assumes that distribution's range is {0,1, ...}

Return

the probability

Parameters

j

value for which ccdf is needed

r

num of successes

p

prob of success, must be in range (0,1)

recursive

true indicates that the recursive logarithmic algorithm should be used