LognormalDistribution Constructor

Definition

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

LognormalDistribution(Vector<Double>) Estimates the parameters of the distribution of a variable assuming it follows a lognormal distribution.
LognormalDistribution(Double, Double) Constructs a new LognormalDistribution object with the specified location and scale parameters.

LognormalDistribution(Vector<Double>)

Estimates the parameters of the distribution of a variable assuming it follows a lognormal distribution.
C#
public LognormalDistribution(
	Vector<double> variable
)

Parameters

variable  Vector<Double>
A vector.

Return Value

The LognormalDistribution that best matches the distribution of variable.

Remarks

Use this constructor to create a LognormalDistribution whose parameters are estimated from variable. By default, the maximum likelihood estimate is returned, if it is available.

Exceptions

ArgumentNullExceptionvariable is null.

LognormalDistribution(Double, Double)

Constructs a new LognormalDistribution object with the specified location and scale parameters.
C#
public LognormalDistribution(
	double mean,
	double standardDeviation
)

Parameters

mean  Double
Mean of the underlying normal distribution.
standardDeviation  Double
Standard deviation of the underlying normal distribution.

Exceptions

ArgumentOutOfRangeExceptionstandardDeviation is less than or equal to zero.

See Also