ContinuousDistribution.GetAllModes Method

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

Definition

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public virtual double[] GetAllModes()

Return Value

Double[]
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