FactorizedDistribution

class FactorizedDistribution<T>(distributions: Collection<NamedDistribution<T>>) : NamedDistribution<T>

A multivariate distribution that has independent distributions for separate axis.

Constructors

Link copied to clipboard
fun <T> FactorizedDistribution(distributions: Collection<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 distributions: Collection<NamedDistribution<T>>

Sources

Link copied to clipboard