TriangularDistribution Constructor

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

TriangularDistribution(Double) Constructs a new TriangularDistribution distribution over the unit interval.
TriangularDistribution(Double, Double) Constructs a new TriangularDistribution distribution over an interval with lower bound 0.
TriangularDistribution(Double, Double, Double) Constructs a new TriangularDistribution object.

TriangularDistribution(Double)

Constructs a new TriangularDistribution distribution over the unit interval.
C#
public TriangularDistribution(
	double mode
)

Parameters

mode  Double
The point of maximum likelihood.

Remarks

The lower and upper bound of the interval are 0 and 1, respectively.

Exceptions

ArgumentOutOfRangeException

mode is less than 0 or greater than 1.

TriangularDistribution(Double, Double)

Constructs a new TriangularDistribution distribution over an interval with lower bound 0.
C#
public TriangularDistribution(
	double upperBound,
	double mode
)

Parameters

upperBound  Double
The upper boundary of the interval.
mode  Double
The mode or point of maximum likelihood.

Remarks

The lower bound of the interval is set to zero.

The upper bound must be greater than zero. The mode must be greater than or equal to 0 and less than or equal to upperBound.

Exceptions

ArgumentOutOfRangeException

upperBound is less than or equal to zero.

-or-

mode is less than 0.

-or-

mode is greater than upperBound.

TriangularDistribution(Double, Double, Double)

Constructs a new TriangularDistribution object.
C#
public TriangularDistribution(
	double lowerBound,
	double upperBound,
	double mode
)

Parameters

lowerBound  Double
The lower boundary of the interval.
upperBound  Double
The upper boundary of the interval.
mode  Double
The point of maximum likelihood.

Remarks

The upper bound must be greater than the lower bound. The mode must be greater than or equal to lowerBound and less than or equal to upperBound.

Exceptions

ArgumentOutOfRangeException

upperBound is less than or equal to lowerBound.

-or-

mode is less than 0.

-or-

mode is greater than upperBound.

See Also