WeibullDistribution Constructor

Definition

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

Overload List

WeibullDistribution(Double) Constructs a new Weibull distribution with location parameter zero and unit scale.
WeibullDistribution(Vector<Double>) Constructs a new Weibull distribution from a numerical variable.
WeibullDistribution(Double, Double) Constructs a new Weibull distribution with location parameter zero.
WeibullDistribution(Vector<Double>, EstimationMethod) Constructs a new Weibull distribution from a numerical variable.
WeibullDistribution(Double, Double, Double) Constructs a new Weibull distribution.

WeibullDistribution(Double)

Constructs a new Weibull distribution with location parameter zero and unit scale.
C#
public WeibullDistribution(
	double shape
)

Parameters

shape  Double
The shape parameter.

Remarks

The shape parameter must be greater than zero.

Exceptions

ArgumentOutOfRangeException

shape is nonpositive or nonfinite.

-or-

scale is nonpositive or nonfinite, or location is nonfinite.

WeibullDistribution(Vector<Double>)

Constructs a new Weibull distribution from a numerical variable.
C#
public WeibullDistribution(
	Vector<double> variable
)

Parameters

variable  Vector<Double>
A vector.

Remarks

This constructor estimates the distribution of variable using the selected method with location fixed at zero. Default selects matching moments, using unbiased sample variance. Observations must be finite and nonnegative; maximum likelihood requires strictly positive observations. Fitting normalizes their scale before solving.

Exceptions

ArgumentNullException

variable is null.

ArgumentOutOfRangeExceptionThe method is unknown, there are fewer than two observations, or an observation is outside the permitted domain.
ArgumentExceptionObservations are constant or do not identify finite positive fitted parameters.

WeibullDistribution(Double, Double)

Constructs a new Weibull distribution with location parameter zero.
C#
public WeibullDistribution(
	double shape,
	double scale
)

Parameters

shape  Double
The shape parameter.
scale  Double
The scale parameter.

Remarks

The scale and shape parameters must be greater than zero.

Exceptions

ArgumentOutOfRangeException

shape is nonpositive or nonfinite.

-or-

scale is nonpositive or nonfinite, or location is nonfinite.

WeibullDistribution(Vector<Double>, EstimationMethod)

Constructs a new Weibull distribution from a numerical variable.
C#
public WeibullDistribution(
	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 selected method with location fixed at zero. Default selects matching moments, using unbiased sample variance. Observations must be finite and nonnegative; maximum likelihood requires strictly positive observations. Fitting normalizes their scale before solving.

Exceptions

ArgumentNullException

variable is null.

ArgumentOutOfRangeExceptionThe method is unknown, there are fewer than two observations, or an observation is outside the permitted domain.
ArgumentExceptionObservations are constant or do not identify finite positive fitted parameters.

WeibullDistribution(Double, Double, Double)

Constructs a new Weibull distribution.
C#
public WeibullDistribution(
	double shape,
	double scale,
	double location
)

Parameters

shape  Double
The shape parameter.
scale  Double
The scale parameter.
location  Double
The location parameter.

Remarks

The scale and shape parameters must be greater than zero.

Exceptions

ArgumentOutOfRangeException

shape is nonpositive or nonfinite.

-or-

scale is nonpositive or nonfinite, or location is nonfinite.

See Also