Distribution

interface Distribution<T : Any> : Sampler<T>

A distribution of typed objects.

Types

Companion
Link copied to clipboard
common
object Companion
An empty companion.

Functions

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

UnivariateDistribution
Link copied to clipboard
NamedDistribution
Link copied to clipboard