pmf

open fun pmf(x: Double): Double

If x is not an integer value, then the probability must be zero otherwise pmf(int x) is used to determine the probability

Return

the probability

Parameters

x

the value to evaluate


abstract 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


open fun pmf(range: IntRange): Map<Int, Double>

Computes the probabilities associated with the range and returns the value and the probability as a map with the integer value as the key and the probability as the related value.