NamedDistributionWrapper

class NamedDistributionWrapper<T : Any>(name: String, distribution: Distribution<T>) : NamedDistribution<T>

Functions

Link copied to clipboard
open override fun probability(arg: Map<String, T>): Double

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

Link copied to clipboard
open override fun sample(generator: RandomGenerator): Chain<Map<String, T>>

Generates a chain of samples.

Properties

Link copied to clipboard
val distribution: Distribution<T>
Link copied to clipboard
val name: String

Sources

Link copied to clipboard