DiscreteUniformDistribution.GetAllModes Method

Returns an array that contains all the modes of the distribution.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public override int[] GetAllModes()

Return Value

Int32[]
A double array containing the modes of the distribution.

Remarks

Most distributions are unimodal: The probability density function has only one local maximum. In this case, this method returns an array with one value.

Some distributions, for example Beta distributions with both shape parameters less than one, have two modes. In this case, this method returns an array with two values.

Some distributions, like the uniform distribution, have infinitely many modes in an interval. In this case, NumberOfModes is MaxValue and this method returns an array containing the lower and upper bounds of the interval.

See Also