Class GammaLMMEstimator
- java.lang.Object
-
- elki.math.statistics.distribution.estimator.GammaLMMEstimator
-
- All Implemented Interfaces:
DistributionEstimator<GammaDistribution>,LMMDistributionEstimator<GammaDistribution>
@Reference(authors="J. R. M. Hosking", title="Fortran routines for use with the method of L-moments Version 3.03", booktitle="IBM Research Technical Report", bibkey="tr/ibm/Hosking00") public class GammaLMMEstimator extends java.lang.Object implements LMMDistributionEstimator<GammaDistribution>
Estimate the parameters of a Gamma Distribution, using the methods of L-Moments (LMM).Reference:
J. R. M. Hosking
Fortran routines for use with the method of L-moments Version 3.03
IBM Research.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGammaLMMEstimator.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description private static doubleA1Coefficients for polynomial approximationprivate static doubleA2Coefficients for polynomial approximationprivate static doubleA3Coefficients for polynomial approximationprivate static doubleB1Coefficients for polynomial approximationprivate static doubleB2Coefficients for polynomial approximationprivate static doubleB3Coefficients for polynomial approximationprivate static doubleB4Coefficients for polynomial approximationstatic GammaLMMEstimatorSTATICStatic instance.
-
Constructor Summary
Constructors Modifier Constructor Description privateGammaLMMEstimator()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GammaDistributionestimateFromLMoments(double[] xmom)Estimate from the L-Moments.java.lang.Class<? super GammaDistribution>getDistributionClass()Get the class that is produced by the estimator.intgetNumMoments()The number of moments needed.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface elki.math.statistics.distribution.estimator.DistributionEstimator
estimate
-
Methods inherited from interface elki.math.statistics.distribution.estimator.LMMDistributionEstimator
estimate
-
-
-
-
Field Detail
-
STATIC
public static final GammaLMMEstimator STATIC
Static instance.
-
A1
private static double A1
Coefficients for polynomial approximation
-
A2
private static double A2
Coefficients for polynomial approximation
-
A3
private static double A3
Coefficients for polynomial approximation
-
B1
private static double B1
Coefficients for polynomial approximation
-
B2
private static double B2
Coefficients for polynomial approximation
-
B3
private static double B3
Coefficients for polynomial approximation
-
B4
private static double B4
Coefficients for polynomial approximation
-
-
Method Detail
-
getNumMoments
public int getNumMoments()
Description copied from interface:LMMDistributionEstimatorThe number of moments needed.- Specified by:
getNumMomentsin interfaceLMMDistributionEstimator<GammaDistribution>- Returns:
- Moments needed.
-
estimateFromLMoments
public GammaDistribution estimateFromLMoments(double[] xmom)
Description copied from interface:LMMDistributionEstimatorEstimate from the L-Moments.- Specified by:
estimateFromLMomentsin interfaceLMMDistributionEstimator<GammaDistribution>- Parameters:
xmom- L-Moments- Returns:
- Distribution
-
getDistributionClass
public java.lang.Class<? super GammaDistribution> getDistributionClass()
Description copied from interface:DistributionEstimatorGet the class that is produced by the estimator.- Specified by:
getDistributionClassin interfaceDistributionEstimator<GammaDistribution>- Returns:
- Distribution class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-