recursiveCDF

fun recursiveCDF(j: Int, n: Int, p: Double): Double

Computes the probability mass function at j using a recursive (iterative) algorithm using logarithms

Return

cumulative probability of j

Parameters

j

the value to evaluate

n

number of trials

p

success probability