Triangular Distribution Constructor
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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)
Constructs a new TriangularDistribution
distribution over the unit interval.
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
Argument | mode is less than 0 or greater than 1. |
TriangularDistribution(Double, Double)
Constructs a new TriangularDistribution
distribution over an interval with lower bound 0.
public TriangularDistribution(
double upperBound,
double mode
)
Parameters
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
Argument | 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.
public TriangularDistribution(
double lowerBound,
double upperBound,
double mode
)
Parameters
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
Argument | upperBound is less than or equal to lowerBound. -or- mode is less than 0. -or- mode is greater than upperBound. |