InverseWeibullDistribution Constructor

Definition

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

Overload List

InverseWeibullDistribution(Vector<Double>, EstimationMethod) Estimates the parameters of the distribution of a variable assuming it follows an inverse Weibull distribution.
InverseWeibullDistribution(Double, Double, Double) Constructs a new inverse Weibull distribution.

InverseWeibullDistribution(Vector<Double>, EstimationMethod)

Estimates the parameters of the distribution of a variable assuming it follows an inverse Weibull distribution.
C#
public InverseWeibullDistribution(
	Vector<double> variable,
	EstimationMethod method = EstimationMethod.MatchingMoments
)

Parameters

variable  Vector<Double>
A vector.
method  EstimationMethod  (Optional)
Optional. An EstimationMethod value that specifies the method to be used to estimate the distribution parameters. The default is MatchingMoments.

Return Value

The InverseWeibullDistribution that best matches the distribution of variable.

Remarks

Estimates shape and scale with location fixed at zero. Observations must be finite, positive, nonconstant and contain at least two values. Default selects matching moments, using unbiased sample variance. Maximum likelihood solves a centered logarithmic score equation without forming reciprocals of the observations.

Exceptions

ArgumentNullException

variable is null.

ArgumentOutOfRangeExceptionThe method is unknown, there are fewer than two observations, or an observation is nonpositive or nonfinite.
ArgumentExceptionThe observations are constant or do not identify finite positive fitted parameters.

InverseWeibullDistribution(Double, Double, Double)

Constructs a new inverse Weibull distribution.
C#
public InverseWeibullDistribution(
	double shape,
	double scale = 1,
	double location = 0
)

Parameters

shape  Double
The shape parameter.
scale  Double  (Optional)
Optional. The scale parameter. The default is 1.
location  Double  (Optional)
Optional. The location parameter. The default is 0.

Remarks

The shape and scale 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