Click or drag to resize

TriangularDistribution Class

Class TriangularDistribution represents the triangular probability distribution.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreProbabilityDistribution
    CenterSpace.NMath.CoreTriangularDistribution

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class TriangularDistribution : ProbabilityDistribution, 
	IRandomVariableMoments

The TriangularDistribution type exposes the following members.

Constructors
 NameDescription
Public methodTriangularDistribution Default constructor. Constructs a TriangularDistribution with lower limit 0, upper limit 1, and mode 0.5.
Public methodTriangularDistribution(Double, Double) Constructs a TriangularDistribution instance with the given upper and lower limits and mode equal to their midpoint.
Public methodTriangularDistribution(Double, Double, Double) Constructs a TriangularDistribution with the given parameters.
Top
Properties
 NameDescription
Public propertyKurtosis Gets the kurtosis, a measure of the degree of peakednesss of the distribution.
Public propertyLowerLimit Gets the lower limit of the distribution.
Public propertyMean Gets the mean of the distribution.
Public propertyMode Gets the mode of the distribution.
Public propertySkewness Gets the skewness, a measure of the degree of asymmetry of this distribution.
Public propertyUpperLimit Gets the upper limit of the distribution.
Public propertyVariance Gets the variance of the distribution.
Remarks
The variance of the distribution is the standard deviation squared.
Top
Methods
 NameDescription
Public methodCDF Returns the cumulative density function evaluated at a given value.
(Overrides ProbabilityDistributionCDF(Double))
Public methodClone Creates a deep copy of this TriangularDistribution.
(Overrides ProbabilityDistributionClone)
Public methodInverseCDF Returns the inverse cumulative density function evaluated a the given value.
(Overrides ProbabilityDistributionInverseCDF(Double))
Protected methodInverseCdfUsingBracket Uses a bracketing method to evaluate the inverse of cumulative distribution functions.
(Inherited from ProbabilityDistribution)
Protected methodInverseDiscreteCdfUsingBracket Uses a bracketing method to evaluate the inverse of cumulative distribution functions for discrete distributions.
(Inherited from ProbabilityDistribution)
Public methodOnDeserialized Constructs a TriangularDistribution instance from serialization information.
Public methodPDF Returns the probability density function evaluated at a given value.
(Overrides ProbabilityDistributionPDF(Double))
Public methodSetParameters Sets the parameter for this distribution.
Public methodToString Returns a formatted string representation of this distribution.
(Overrides ProbabilityDistributionToString)
Top
Remarks
The triangular distribution is defined by three parameters, a lower limit a, an upper limit b, and number c, between a and b, called the mode. the probability density function (PDF) has the shape of a triangle in the X/Y plane with verices (a, 0), (b, 0), and (c, y), where y is chosen so that the area of the triangle is 1.
See Also