JohnsonDistribution Constructor

Definition

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

Overload List

JohnsonDistribution(Vector<Double>) Constructs a Johnson distribution estimated from a numerical variable.
JohnsonDistribution(Double, Double, Double, Double, JohnsonDistributionType) Constructs a new JohnsonDistribution.

JohnsonDistribution(Vector<Double>)

Constructs a Johnson distribution estimated from a numerical variable.
C#
public JohnsonDistribution(
	Vector<double> variable
)

Parameters

variable  Vector<Double>
A vector.

Remarks

This constructor estimates the distribution of variable using the quantiles method of Wheeler (1980). Observations must be finite and the five fitted empirical quantiles must be distinct.

Exceptions

ArgumentNullException

variable is null.

ArgumentOutOfRangeExceptionvariable contains fewer than two observations or a nonfinite value.
ArgumentExceptionThe empirical quantiles do not identify finite parameters with positive scale and delta.

JohnsonDistribution(Double, Double, Double, Double, JohnsonDistributionType)

Constructs a new JohnsonDistribution.
C#
public JohnsonDistribution(
	double location,
	double scale,
	double gamma,
	double delta,
	JohnsonDistributionType type = JohnsonDistributionType.Unbounded
)

Parameters

location  Double
Location parameter of the distribution.
scale  Double
Scale parameter. Must be greater than zero.
gamma  Double
The first shape parameter.
delta  Double
The second shape parameter.
type  JohnsonDistributionType  (Optional)
The Johnson distribution type.

Exceptions

ArgumentOutOfRangeException

A parameter is nonfinite, type is unknown, or lambda or delta is nonpositive.

See Also