pmf

open override fun pmf(k: Int): Double(source)

Returns the probability mass at k, the probability of exactly k failures before the successes-th success.

When probability is 1.0 (every trial succeeds), returns 1.0 for k = 0 and zero otherwise.

Return

the probability of exactly k failures, or zero if k is negative.

Parameters

k

the number of failures before achieving the required successes.