logPmf
Returns the natural logarithm of the probability mass at k.
Computed using log-combinations and log-probabilities to maintain numerical stability for large values of k or successes.
Return
the natural log of the probability mass at k. Returns Double.NEGATIVE_INFINITY when k is negative or has zero probability.
Parameters
k
the number of failures before achieving the required successes.