Provides generation of triangular distributed random numbers.
The parametrization is equal to the parametrization in Mathematica.
Constructor | Description | ||
Full Usage:
TriangularDistribution()
|
Initializes a new instance of the TriangularDistribution class, using a StandardGenerator as underlying random number generator. |
||
|
Initializes a new instance of the TriangularDistribution class, using the specified Generator as underlying random number generator.
|
||
Full Usage:
TriangularDistribution(min, max, c)
Parameters:
float
-
The left boundary of the PDF.
max : float
-
The right boundary of the PDF.
c : float
-
The location of the maximum of the PDF (has to be inbetween (min, max).
|
|
||
Full Usage:
TriangularDistribution(min, max, c, generator)
Parameters:
float
-
The left boundary of the PDF.
max : float
-
The right boundary of the PDF.
c : float
-
The location of the maximum of the PDF (has to be inbetween (min, max).
generator : Generator
-
The generator.
|
|
Instance member | Description |
Full Usage:
this.C
Returns: float
|
Gets or sets the parameter C (the location of the maximum of the PDF), which is used for generation of triangular distributed random numbers. Call TriangularDistribution.IsValidC to determine whether a value is valid and therefor assignable.
|
Full Usage:
this.CDF
Parameters:
float
-
Argument.
Returns: float
The probability that the random variable of this probability distribution will be found at a value less than or equal to x.
Modifiers: abstract |
Calculates the cumulative distribution function.
|
Full Usage:
this.Initialize
Parameters:
float
-
The left boundary of the PDF.
max : float
-
The right boundary of the PDF.
c : float
-
The location of the maximum of the PDF (has to be inbetween (min, max).
|
Initializes the distribution.
|
Full Usage:
this.IsValidC
Parameters:
float
-
The value to check.
Returns: bool
if value is greater than or equal to TriangularDistribution.Min, and greater than or equal
to TriangularDistribution.Max; otherwise, .
|
|
Full Usage:
this.IsValidMax
Parameters:
float
-
The value to check.
Returns: bool
if value is greater than TriangularDistribution.Min, and greater than or equal to
TriangularDistribution.C; otherwise, .
|
|
Full Usage:
this.IsValidMin
Parameters:
float
-
The value to check.
Returns: bool
if value is less than TriangularDistribution.Max, and less than or equal to
TriangularDistribution.C; otherwise, .
|
|
Full Usage:
this.Max
Returns: float
|
Gets or sets the parameter Max (the right boundary of the PDF), which is used for generation of triangular distributed random numbers. Call TriangularDistribution.IsValidMax to determine whether a value is valid and therefor assignable.
|
Full Usage:
this.Maximum
Returns: float
Modifiers: abstract |
Gets the maximum possible value of triangular distributed random numbers.
|
Full Usage:
this.Mean
Returns: float
Modifiers: abstract |
Gets the mean value of triangular distributed random numbers.
|
Full Usage:
this.Median
Returns: float
Modifiers: abstract |
Gets the median of triangular distributed random numbers.
|
Full Usage:
this.Min
Returns: float
|
Gets or sets the parameter Min (the left boundary of the PDF), which is used for generation of triangular distributed random numbers. Call TriangularDistribution.IsValidMin to determine whether a value is valid and therefor assignable.
|
Full Usage:
this.Minimum
Returns: float
Modifiers: abstract |
Gets the minimum possible value of triangular distributed random numbers.
|
Full Usage:
this.Mode
Returns: float[]
Modifiers: abstract |
Gets the mode of triangular distributed random numbers.
|
Full Usage:
this.NextDouble
Returns: float
A triangular distributed double-precision floating point number.
Modifiers: abstract |
Returns a triangular distributed floating point random number.
|
Full Usage:
this.PDF
Parameters:
float
-
Argument.
Returns: float
The relative likelihood for the random variable to occur at the point x.
Modifiers: abstract |
Calculates the probability density function.
|
Full Usage:
this.Quantile
Parameters:
float
-
The probability p.
Returns: float
The point x at which the cumulative distribution function TriangularDistribution.CDF of argument x is equal to p.
Modifiers: abstract |
Calculates the quantile of the distribution function.
|
Full Usage:
this.Variance
Returns: float
Modifiers: abstract |
Gets the variance of triangular distributed random numbers.
|
Static member | Description |
Full Usage:
TriangularDistribution.CDF(x, min, max, c)
Parameters:
float
-
The x.
min : float
-
The left boundary of the PDF.
max : float
-
The right boundary of the PDF.
c : float
-
The location of the maximum of the PDF (has to be inbetween (min, max).
Returns: float
The cumulative distribution function at x.
|
Calculates the cumulative distribution function at the specified x.
|
Full Usage:
TriangularDistribution.PDF(x, min, max, c)
Parameters:
float
-
The x.
min : float
-
The left boundary of the PDF.
max : float
-
The right boundary of the PDF.
c : float
-
The location of the maximum of the PDF (has to be inbetween (min, max).
Returns: float
The probability density at x.
|
Calculates the probability density at the specified x.
|
Full Usage:
TriangularDistribution.Quantile(p, min, max, c)
Parameters:
float
-
The p.
min : float
-
The left boundary of the PDF.
max : float
-
The right boundary of the PDF.
c : float
-
The location of the maximum of the PDF (has to be inbetween (min, max).
Returns: float
The quantile at the probability p.
|
Calculates the quantile at the specified probability p.
|