TriangularDistribution Type

Provides generation of triangular distributed random numbers.

The parametrization is equal to the parametrization in Mathematica.

Constructors

Constructor Description

TriangularDistribution()

Full Usage: TriangularDistribution()

Initializes a new instance of the TriangularDistribution class, using a StandardGenerator as underlying random number generator.

TriangularDistribution(generator)

Full Usage: TriangularDistribution(generator)

Parameters:

Initializes a new instance of the TriangularDistribution class, using the specified Generator as underlying random number generator.

generator : Generator

A Generator object.

ArgumentNullException generator is NULL ( in Visual Basic).

TriangularDistribution(min, max, c)

Full Usage: TriangularDistribution(min, max, c)

Parameters:
    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).

Initializes a new instance of the TriangularDistribution class.

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).

TriangularDistribution(min, max, c, generator)

Full Usage: TriangularDistribution(min, max, c, generator)

Parameters:
    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).
    generator : Generator - The generator.

Initializes a new instance of the TriangularDistribution class.

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).

generator : Generator

The generator.

Instance members

Instance member Description

this.C

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.

Returns: float

this.CDF

Full Usage: this.CDF

Parameters:
    x : 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.

x : 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.

this.Initialize

Full Usage: this.Initialize

Parameters:
    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).

Initializes the distribution.

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).

this.IsValidC

Full Usage: this.IsValidC

Parameters:
    value : 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, .

Determines whether the specified value is valid for parameter TriangularDistribution.C.

value : 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, .

this.IsValidMax

Full Usage: this.IsValidMax

Parameters:
    value : float - The value to check.

Returns: bool if value is greater than TriangularDistribution.Min, and greater than or equal to TriangularDistribution.C; otherwise, .

Determines whether the specified value is valid for parameter TriangularDistribution.Max.

value : float

The value to check.

Returns: bool

if value is greater than TriangularDistribution.Min, and greater than or equal to TriangularDistribution.C; otherwise, .

this.IsValidMin

Full Usage: this.IsValidMin

Parameters:
    value : float - The value to check.

Returns: bool if value is less than TriangularDistribution.Max, and less than or equal to TriangularDistribution.C; otherwise, .

Determines whether the specified value is valid for parameter TriangularDistribution.Min.

value : float

The value to check.

Returns: bool

if value is less than TriangularDistribution.Max, and less than or equal to TriangularDistribution.C; otherwise, .

this.Max

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.

Returns: float

this.Maximum

Full Usage: this.Maximum

Returns: float
Modifiers: abstract

Gets the maximum possible value of triangular distributed random numbers.

Returns: float

this.Mean

Full Usage: this.Mean

Returns: float
Modifiers: abstract

Gets the mean value of triangular distributed random numbers.

Returns: float

this.Median

Full Usage: this.Median

Returns: float
Modifiers: abstract

Gets the median of triangular distributed random numbers.

Returns: float

this.Min

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.

Returns: float

this.Minimum

Full Usage: this.Minimum

Returns: float
Modifiers: abstract

Gets the minimum possible value of triangular distributed random numbers.

Returns: float

this.Mode

Full Usage: this.Mode

Returns: float[]
Modifiers: abstract

Gets the mode of triangular distributed random numbers.

Returns: float[]

this.NextDouble

Full Usage: this.NextDouble

Returns: float A triangular distributed double-precision floating point number.
Modifiers: abstract

Returns a triangular distributed floating point random number.

Returns: float

A triangular distributed double-precision floating point number.

this.PDF

Full Usage: this.PDF

Parameters:
    x : float - Argument.

Returns: float The relative likelihood for the random variable to occur at the point x.
Modifiers: abstract

Calculates the probability density function.

x : float

Argument.

Returns: float

The relative likelihood for the random variable to occur at the point x.

this.Quantile

Full Usage: this.Quantile

Parameters:
    p : 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.

p : float

The probability p.

Returns: float

The point x at which the cumulative distribution function TriangularDistribution.CDF of argument x is equal to p.

this.Variance

Full Usage: this.Variance

Returns: float
Modifiers: abstract

Gets the variance of triangular distributed random numbers.

Returns: float

Static members

Static member Description

TriangularDistribution.CDF(x, min, max, c)

Full Usage: TriangularDistribution.CDF(x, min, max, c)

Parameters:
    x : 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.

x : 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.

TriangularDistribution.PDF(x, min, max, c)

Full Usage: TriangularDistribution.PDF(x, min, max, c)

Parameters:
    x : 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.

x : 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.

TriangularDistribution.Quantile(p, min, max, c)

Full Usage: TriangularDistribution.Quantile(p, min, max, c)

Parameters:
    p : 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.

p : 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.