Distribution1D

interface Distribution1D<T : Comparable<T>> : Distribution<T>

Functions

Link copied to clipboard
abstract fun cumulative(arg: T): Double

Cumulative distribution for ordered parameter (CDF)

Link copied to clipboard
abstract fun probability(arg: T): Double

A probability value for given argument arg. For continuous distributions returns PDF

Link copied to clipboard
abstract override fun sample(generator: RandomGenerator): Chain<T>

Generates a chain of samples.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun <T : Comparable<T>> Distribution1D<T>.integral(from: T, to: T): Double

Compute probability integral in an interval

Sources

Link copied to clipboard