Exponential Distribution Constructor
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
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.
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. |