pmf

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

Returns the probability mass at k for this Poisson distribution.

Computes the exact probability of observing exactly k events. Returns zero for negative values of k. The computation delegates to logPmf and exponentiates the result to avoid intermediate overflow of factorial terms.

Return

the probability of exactly k events, in the range [0, 1].

Parameters

k

the number of events at which to evaluate the probability.