LaplaceDistribution Type

Provides generation of laplace distributed random numbers.

The implementation of the LaplaceDistribution type bases upon information presented on Wikipedia - Laplace distribution.

Constructors

Constructor Description

LaplaceDistribution()

Full Usage: LaplaceDistribution()

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

LaplaceDistribution(generator)

Full Usage: LaplaceDistribution(generator)

Parameters:

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

generator : Generator

A Generator object.

ArgumentNullException generator is NULL ( in Visual Basic).

LaplaceDistribution(mu, alpha)

Full Usage: LaplaceDistribution(mu, alpha)

Parameters:
    mu : float
    alpha : float

mu : float
alpha : float

LaplaceDistribution(mu, alpha, generator)

Full Usage: LaplaceDistribution(mu, alpha, generator)

Parameters:
    mu : float
    alpha : float
    generator : Generator

mu : float
alpha : float
generator : Generator

Instance members

Instance member Description

this.Alpha

Full Usage: this.Alpha

Gets or sets the parameter alpha which is used for generation of laplace distributed random numbers.

Call LaplaceDistribution.IsValidAlpha to determine whether a value is valid and therefor assignable.

this.CDF

Full Usage: this.CDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Initialize

Full Usage: this.Initialize

Parameters:
    mu : float
    alpha : float

mu : float
alpha : float

this.IsValidAlpha

Full Usage: this.IsValidAlpha

Parameters:
    value : float - The value to check.

Returns: bool if value is greater than 0.0; otherwise, .

Determines whether the specified value is valid for parameter LaplaceDistribution.Alpha.

value : float

The value to check.

Returns: bool

if value is greater than 0.0; otherwise, .

this.IsValidMu

Full Usage: this.IsValidMu

Parameters:
    value : float - The value to check.

Returns: bool .

Determines whether the specified value is valid for parameter LaplaceDistribution.Mu.

value : float

The value to check.

Returns: bool

.

this.Maximum

Full Usage: this.Maximum

Returns: float
Modifiers: abstract

Gets the maximum possible value of laplace distributed random numbers.

Returns: float

this.Mean

Full Usage: this.Mean

Returns: float
Modifiers: abstract

Gets the mean value of laplace distributed random numbers.

Returns: float

this.Median

Full Usage: this.Median

Returns: float
Modifiers: abstract

Gets the median of laplace distributed random numbers.

Returns: float

this.Minimum

Full Usage: this.Minimum

Returns: float
Modifiers: abstract

Gets the minimum possible value of laplace distributed random numbers.

Returns: float

this.Mode

Full Usage: this.Mode

Returns: float[]
Modifiers: abstract

Gets the mode of laplace distributed random numbers.

Returns: float[]

this.Mu

Full Usage: this.Mu

Gets or sets the parameter mu which is used for generation of laplace distributed random numbers.

Call LaplaceDistribution.IsValidMu to determine whether a value is valid and therefor assignable.

this.NextDouble

Full Usage: this.NextDouble

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

Returns a laplace distributed floating point random number.

Returns: float

A laplace distributed double-precision floating point number.

this.PDF

Full Usage: this.PDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Quantile

Full Usage: this.Quantile

Parameters:
    p : float

Returns: float
Modifiers: abstract

p : float
Returns: float

this.Variance

Full Usage: this.Variance

Returns: float
Modifiers: abstract

Gets the variance of laplace distributed random numbers.

Returns: float

Static members

Static member Description

LaplaceDistribution.CDF(x, mu, beta)

Full Usage: LaplaceDistribution.CDF(x, mu, beta)

Parameters:
    x : float
    mu : float
    beta : float

Returns: float

x : float
mu : float
beta : float
Returns: float

LaplaceDistribution.PDF(x, mu, beta)

Full Usage: LaplaceDistribution.PDF(x, mu, beta)

Parameters:
    x : float
    mu : float
    beta : float

Returns: float

x : float
mu : float
beta : float
Returns: float

LaplaceDistribution.Quantile(p, mu, beta)

Full Usage: LaplaceDistribution.Quantile(p, mu, beta)

Parameters:
    p : float
    mu : float
    beta : float

Returns: float

p : float
mu : float
beta : float
Returns: float