Gamma Distribution Constructor
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
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
Argument | The order order is less than or equal to zero. |
GammaDistribution(Vector<Double>)
public GammaDistribution(
Vector<double> variable
)
Parameters
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
Argument | variable is null. |
GammaDistribution(Double, Double)
public GammaDistribution(
double order,
double scale
)
Parameters
Remarks
order and scale must be strictly greater than zero. The location parameter of the distribution is set to zero.
Exceptions
Argument | 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
Argument | variable is null. |
GammaDistribution(Double, Double, Double)
public GammaDistribution(
double order,
double scale,
double location
)
Parameters
Remarks
order and scale must be strictly greater than zero.
Exceptions
Argument | The order order or the scale factor scale is less than or equal to zero. |