Gamma Distribution Constructor
Definition
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Gamma | Constructs a new standard GammaDistribution with the specified order parameter. |
Gamma | Estimates the parameters of the distribution of a variable assuming it follows a gamma distribution using the methodof matching moments. |
Gamma | Constructs a new GammaDistribution with the specified order and scale parameter. |
Gamma | Estimates the parameters of the distribution of a variable assuming it follows a gamma distribution. |
Gamma | Constructs a new GammaDistribution with the specified order, scale, and location parameters. |
GammaDistribution(Double)
public GammaDistribution(
double order
)
Parameters
- order Double
- The order of the distribution. Must be strictly greater than zero.
Remarks
order must be strictly greater than zero. The location parameter of the distribution is set to zero. The scale parameter is set to 1.
Exceptions
ArgumentOutOfRangeException | The order order is less than or equal to zero. |
GammaDistribution(Vector<Double>)
public GammaDistribution(
Vector<double> variable
)
Parameters
- variable Vector<Double>
- A vector.
Return Value
A GammaDistribution that best matches the distribution of variable.Remarks
Use this constructor to create a GammaDistribution whose parameters are estimated from variable. By default, the maximum likelihood estimate is returned, if it is available.
Exceptions
ArgumentNullException | variable is null. |
GammaDistribution(Double, Double)
public GammaDistribution(
double order,
double scale
)
Parameters
- order Double
- The order of the distribution. Must be strictly greater than zero.
- scale Double
- The scale parameter. Must be strictly greater than zero.
Remarks
order and scale must be strictly greater than zero. The location parameter of the distribution is set to zero.
Exceptions
ArgumentOutOfRangeException | The order order or the scale factor scale is less than or equal to zero. |
GammaDistribution(Vector<Double>, EstimationMethod)
public GammaDistribution(
Vector<double> variable,
EstimationMethod method
)
Parameters
- variable Vector<Double>
- A vector.
- method EstimationMethod
- A EstimationMethod value that specifies the method used to estimate the distribution's parameters.
Return Value
The GammaDistribution that best matches the distribution of variable.Remarks
Use this constructor to create a GammaDistribution whose parameters are estimated from variable. By default, the maximum likelihood estimate is returned, if it is available.
Exceptions
ArgumentNullException | variable is null. |
GammaDistribution(Double, Double, Double)
public GammaDistribution(
double order,
double scale,
double location
)
Parameters
- order Double
- The order of the distribution. Must be strictly greater than zero.
- scale Double
- The scale parameter. Must be strictly greater than zero.
- location Double
- The location parameter.
Remarks
order and scale must be strictly greater than zero.
Exceptions
ArgumentOutOfRangeException | The order order or the scale factor scale is less than or equal to zero. |