Triangular Class |
public class Triangular : IContinuousDistribution, IUnivariateDistribution, IDistribution
The Triangular type exposes the following members.
Name | Description | |
---|---|---|
Triangular(Double, Double, Double) | Initializes a new instance of the Triangular class with the given lower bound, upper bound and mode. | |
Triangular(Double, Double, Double, Random) | Initializes a new instance of the Triangular class with the given lower bound, upper bound and mode. |
Name | Description | |
---|---|---|
Entropy | Gets the entropy of the distribution. | |
LowerBound | Gets the lower bound of the distribution. | |
Maximum | Gets the maximum of the distribution. | |
Mean | Gets the mean of the distribution. | |
Median | Gets the median of the distribution. | |
Minimum | Gets the minimum of the distribution. | |
Mode | Gets or sets the mode of the distribution. | |
RandomSource | Gets or sets the random number generator which is used to draw random samples. | |
Skewness | Gets the skewness of the distribution. | |
StdDev | Gets the standard deviation of the distribution. | |
UpperBound | Gets the upper bound of the distribution. | |
Variance | Gets the variance of the distribution. |
Name | Description | |
---|---|---|
CDF | Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x). | |
CumulativeDistribution | Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x). | |
Density | Computes the probability density of the distribution (PDF) at x, i.e. ∂P(X ≤ x)/∂x. | |
DensityLn | Computes the log probability density of the distribution (lnPDF) at x, i.e. ln(∂P(X ≤ x)/∂x). | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
InvCDF | Computes the inverse of the cumulative distribution function (InvCDF) for the distribution at the given probability. This is also known as the quantile or percent point function. | |
InverseCumulativeDistribution | Computes the inverse of the cumulative distribution function (InvCDF) for the distribution at the given probability. This is also known as the quantile or percent point function. | |
IsValidParameterSet | Tests whether the provided values are valid parameters for this distribution. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
Computes the probability density of the distribution (PDF) at x, i.e. ∂P(X ≤ x)/∂x. | ||
PDFLn | Computes the log probability density of the distribution (lnPDF) at x, i.e. ln(∂P(X ≤ x)/∂x). | |
Sample | Generates a sample from the Triangular distribution. | |
Sample(Double, Double, Double) | Generates a sample from the Triangular distribution. | |
Sample(Random, Double, Double, Double) | Generates a sample from the Triangular distribution. | |
Samples | Generates a sequence of samples from the Triangular distribution. | |
Samples(Double) | Fills an array with samples generated from the distribution. | |
Samples(Double, Double, Double) | Generates a sequence of samples from the Triangular distribution. | |
Samples(Double, Double, Double, Double) | Fills an array with samples generated from the distribution. | |
Samples(Random, Double, Double, Double) | Generates a sequence of samples from the Triangular distribution. | |
Samples(Random, Double, Double, Double, Double) | Fills an array with samples generated from the distribution. | |
ToString |
A string representation of the distribution.
(Overrides ObjectToString) |
The distribution will use the Random by default. Users can get/set the random number generator by using the RandomSource property.
The statistics classes will check whether all the incoming parameters are in the allowed range. This might involve heavy computation. Optionally, by setting Control.CheckDistributionParameters to false, all parameter checks can be turned off.