DiscreteDistribution.NumberOfModes Property

Gets the number of modes of the distribution.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public virtual int NumberOfModes { get; }

Property Value

Int32

Remarks

Most distributions are unimodal: The probability density function has only one local maximum. Some distributions, for example Beta distributions with both shape parameters less than one, have two modes. Some distributions, like the uniform distribution, have infinitely many modes. In this case, this property returns MaxValue.

See Also