DirichletDistribution.LogProbabilityDensityFunction Method

Returns the natural logarithm of the density on the open simplex.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public override double LogProbabilityDensityFunction(
	Vector<double> x
)

Parameters

x  Vector<Double>
A full point, or a point with its last coordinate omitted and inferred as one minus the supplied coordinates' sum.

Return Value

Double
The log density, negative infinity outside the open simplex, or NaN when an evaluated coordinate is NaN.

Remarks

Zero and unit coordinates use the outside-support convention; singular boundary limits are not evaluated. Full points must sum to one within the simplex tolerance.

Exceptions

ArgumentNullExceptionx is null.
DimensionMismatchExceptionThe point has neither supported length.

See Also