ExponentialDistribution Constructor

Definition

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

Overload List

ExponentialDistribution(Double) Constructs a new ExponentialDistribution.
ExponentialDistribution(Vector<Double>) Estimates the parameters of the distribution of a variable assuming it follows an exponential distribution.

ExponentialDistribution(Double)

Constructs a new ExponentialDistribution.
C#
public ExponentialDistribution(
	double scale
)

Parameters

scale  Double
The scale parameter of the distribution.

Remarks

The scale parameter of an exponential distribution can have many interpretations. Most often it corresponds to the waiting time until an event occurs.

Exceptions

ArgumentOutOfRangeException

scale is less than or equal to zero.

ExponentialDistribution(Vector<Double>)

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

Parameters

variable  Vector<Double>
A vector.

Return Value

The ExponentialDistribution that best matches the distribution of variable.

Remarks

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

Exceptions

ArgumentNullException

variable is null.

See Also