PMFIfc

fun interface PMFIfc

Represents the probability mass function for 1-d discrete distributions

Author

rossetti

Inheritors

Functions

Link copied to clipboard
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

abstract fun pmf(i: Int): Double

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

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.