DirichletDistribution Constructor

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

DirichletDistribution(Matrix<Double>) Estimates the parameters of the distribution of a set of observations assuming it follows a multivariate normal distribution.
DirichletDistribution(Vector<Double>) Constructs a new DirichletDistribution with the specified parameters.
DirichletDistribution(Vector<Double>[]) Estimates the parameters of the distribution of a variable assuming it follows a normal distribution.

DirichletDistribution(Matrix<Double>)

Estimates the parameters of the distribution of a set of observations assuming it follows a multivariate normal distribution.
C#
public DirichletDistribution(
	Matrix<double> data
)

Parameters

data  Matrix<Double>
A real Matrix<T> whose rows contain the observations.

Return Value

The DirichletDistribution that best matches the distribution of the rows of data.

Remarks

Use this constructor to create a DirichletDistribution whose parameters are estimated from data. This constructor uses an unbiased estimator.

Exceptions

DirichletDistribution(Vector<Double>)

Constructs a new DirichletDistribution with the specified parameters.
C#
public DirichletDistribution(
	Vector<double> parameters
)

Parameters

parameters  Vector<Double>
The shape parameters of the distribution.

DirichletDistribution(Vector<Double>[])

Estimates the parameters of the distribution of a variable assuming it follows a normal distribution.
C#
public DirichletDistribution(
	Vector<double>[] variables
)

Parameters

variables  Vector<Double>[]
An array of vectors.

Return Value

The DirichletDistribution that best matches the distribution of variables.

Remarks

Use this constructor to create a DirichletDistribution whose parameters are estimated from variables. This constructor uses an unbiased estimator.

Exceptions

ArgumentNullException

variables is null.

See Also