mir.random.ndvariable

$(TR $(TDNW $(LREF SphereVariable)) $(TD Uniform distribution on a unit-sphere)) $(TR $(TDNW $(LREF SimplexVariable)) $(TD Uniform distribution on a standard-simplex)) $(TR $(TDNW $(LREF DirichletVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Dirichlet_distribution, Dirichlet random variable))) $(TR $(TDNW $(LREF MultinomialVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Multinomial_distribution, Multinomial random variable))) $(TR $(TDNW $(LREF MultivariateNormalVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Multivariate_normal_distribution, Multivariate_normal random variable)))

Multidimensional Random Variables

Generator nameDescription

Members

Aliases

dirichletVariable
alias dirichletVariable = dirichletVar

Dirichlet distribution.

multinomialVariable
alias multinomialVariable = multinomialVar

Multinomial distribution.

multivariateNormalVariable
alias multivariateNormalVariable = multivariateNormalVar

Multivariate normal distribution. Beta version (has not properly tested).

simplexVariable
alias simplexVariable = simplexVar

Uniform distribution on a simplex.

sphereVariable
alias sphereVariable = sphereVar

Uniform distribution on a sphere.

Functions

dirichletVar
DirichletVariable!T dirichletVar(T[] alpha)

Dirichlet distribution.

multinomialVar
MultinomialVariable!(T) multinomialVar(size_t N, T[] probs)

Multinomial distribution.

multivariateNormalVar
MultivariateNormalVariable!T multivariateNormalVar(Slice!(const(T)*) mu, Slice!(T*, 2) sigma, bool chol)

Multivariate normal distribution. Beta version (has not properly tested).

multivariateNormalVar
auto multivariateNormalVar(S sigma, bool chol)
Undocumented in source. Be warned that the author may not have intended to support it.
multivariateNormalVar
MultivariateNormalVariable!T multivariateNormalVar(Slice!(T*, 2) sigma, bool chol)

Multivariate normal distribution. Beta version (has not properly tested).

multivariateNormalVar
auto multivariateNormalVar(M mu, S sigma, bool chol)
Undocumented in source. Be warned that the author may not have intended to support it.
simplexVar
SimplexVariable!T simplexVar()

Uniform distribution on a simplex.

sphereVar
SphereVariable!T sphereVar()

Uniform distribution on a sphere.

Structs

DirichletVariable
struct DirichletVariable(T)

Dirichlet distribution.

MultinomialVariable
struct MultinomialVariable(T)

Multinomial distribution.

MultivariateNormalVariable
struct MultivariateNormalVariable(T)

Multivariate normal distribution. Beta version (has not properly tested).

SimplexVariable
struct SimplexVariable(T)

Uniform distribution on a simplex.

SphereVariable
struct SphereVariable(T)

Uniform distribution on a sphere.

Templates

isNdRandomVariable
template isNdRandomVariable(T)

Test if T is an n-dimensional random variable.

Meta

Authors

Simon Bürger, Ilya Yaroshenko