ExponentialDistribution Constructor

Definition

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

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

ArgumentOutOfRangeExceptionscale 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

ArgumentNullExceptionvariable is null.

See Also