GammaDistributionFitToSample Method |
Namespace: Meta.Numerics.Statistics.Distributions
Exception | Condition |
---|---|
ArgumentNullException | sample is null. |
InvalidOperationException | sample contains non-positive values. |
InsufficientDataException | sample contains fewer than three values. |
The returned fit parameters are the Shape and Scale, in that order. These are the same parameters, in the same order, that are required by the GammaDistribution(Double, Double) constructor to specify a new Gamma distribution.