Exponential Distribution Constructor
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Exponential | Constructs a new ExponentialDistribution. |
Exponential | Estimates the parameters of the distribution of a variable assuming it follows an exponential distribution. |
ExponentialDistribution(Double)
Constructs a new ExponentialDistribution.
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
Argument | 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.
public ExponentialDistribution(
Vector<double> variable
)
Parameters
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
Argument | variable is null. |