UnivariateDistribution

interface UnivariateDistribution<T : Comparable<T>> : Distribution<T>

Functions

cumulative
Link copied to clipboard
common
abstract fun cumulative(arg: T): Double
Cumulative distribution for ordered parameter (CDF)
probability
Link copied to clipboard
common
abstract fun probability(arg: T): Double
A probability value for given argument arg.
sample
Link copied to clipboard
common
abstract override fun sample(generator: RandomGenerator): Chain<T>
Generates a chain of samples.

Inheritors

NormalDistribution
Link copied to clipboard
UniformDistribution
Link copied to clipboard

Extensions

integral
Link copied to clipboard
common
fun <T : Comparable<T>> UnivariateDistribution<T>.integral(from: T, to: T): Double
Compute probability integral in an interval