pmf

open override fun pmf(x: Double): Double

The probability mass function for this discrete distribution. Returns the same as pdf.

Return

The probability associated with x

Parameters

x

The point to get the probability for


open override fun pmf(i: Int): Double

Returns the f(i) where f represents the probability mass function for the distribution.

Return

f(i) the P(X=i)

Parameters

i

an integer representing the value to be evaluated