Triangular Distribution Constructor
Definition
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Triangular | Constructs a new TriangularDistribution distribution over the unit interval. |
Triangular | Constructs a new TriangularDistribution distribution over an interval with lower bound 0. |
Triangular | Constructs a new TriangularDistribution object. |
TriangularDistribution(Double)
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)
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)
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. |