Laplace Distribution Constructor
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Laplace | Constructs the maximum-likelihood Laplace distribution from a numerical variable. |
Laplace | Constructs a new LaplaceDistribution. |
Laplace | Constructs the Laplace distribution from a numerical variable. |
LaplaceDistribution(Vector<Double>)
Constructs the maximum-likelihood Laplace distribution from a numerical variable.
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.
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.
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. |