pmf

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

Returns the probability mass at k.

Returns probability when k = 1, 1 - probability when k = 0, and zero otherwise.

Return

the probability that the random variable equals k.

Parameters

k

the integer outcome at which to evaluate the mass.