pmf

open override fun pmf(i: Int): Double

computes the pmf of the distribution f(x) = p(1-p)^(x) for x>=0, 0 otherwise

Return

the probability

Parameters

i

the value to evaluate