Distribution

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

A distribution of typed objects.

Types

Link copied to clipboard
object Companion

An empty companion. Distribution factories should be written as its extensions.

Functions

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

Sources

Link copied to clipboard