LognormalDistribution Constructor

Definition

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

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

ArgumentNullException

variable 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

ArgumentOutOfRangeException

standardDeviation is less than or equal to zero.

See Also