Module multi

Source
Expand description

Contains Multi-dimensional distributions.

The trait MultiDistribution supports multi-dimensional sampling without allocating a Vec for each sample. ConstMultiDistribution is an extension for distributions with constant dimension.

Multi-dimensional distributions implement MultiDistribution<T> and (where the dimension is fixed) ConstMultiDistribution<T> for some scalar type T. They may also implement Distribution<Vec<T>> and (where the dimension, N, is fixed) Distribution<[T; N]>.

Structs§

Dirichlet
The Dirichlet distribution Dirichlet(α₁, α₂, ..., αₖ).

Traits§

ConstMultiDistribution
An extension of MultiDistribution for multi-dimensional distributions of fixed dimension
MultiDistribution
A standard abstraction for distributions with multi-dimensional results