LaplaceDistribution Constructor

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

LaplaceDistribution(Vector<Double>) Constructs the maximum-likelihood Laplace distribution from a numerical variable.
LaplaceDistribution(Double, Double) Constructs a new LaplaceDistribution.
LaplaceDistribution(Vector<Double>, EstimationMethod) Constructs the Laplace distribution from a numerical variable.

LaplaceDistribution(Vector<Double>)

Constructs the maximum-likelihood Laplace distribution from a numerical variable.
C#
public LaplaceDistribution(
	Vector<double> variable
)

Parameters

variable  Vector<Double>
A vector.

Remarks

This constructor estimates the distribution of variable using the maximum likelihood method.

Exceptions

ArgumentNullException

variable is null.

LaplaceDistribution(Double, Double)

Constructs a new LaplaceDistribution.
C#
public LaplaceDistribution(
	double location,
	double scale
)

Parameters

location  Double
Location parameter of the distribution.
scale  Double
Scale parameter. Must be greater than zero.

Exceptions

ArgumentOutOfRangeException

The scale parameter, scale is less than or equal to zero.

LaplaceDistribution(Vector<Double>, EstimationMethod)

Constructs the Laplace distribution from a numerical variable.
C#
public LaplaceDistribution(
	Vector<double> variable,
	EstimationMethod method
)

Parameters

variable  Vector<Double>
A vector.
method  EstimationMethod
An EstimationMethod value that specifies the method to be used to estimate the distribution parameters.

Remarks

This constructor estimates the distribution of variable using the method specified by method.

Exceptions

ArgumentNullException

variable is null.

See Also