DirichletDistribution Constructor

Definition

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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

ArgumentNullExceptiondata is null.

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

ArgumentNullExceptionvariables is null.

See Also