Class BestFitEstimator
- java.lang.Object
-
- elki.math.statistics.distribution.estimator.meta.BestFitEstimator
-
- All Implemented Interfaces:
DistributionEstimator<Distribution>
public class BestFitEstimator extends java.lang.Object implements DistributionEstimator<Distribution>
A meta estimator that will try a number of (inexpensive) estimations, then choose whichever works best.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BestFitEstimator.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<LMMDistributionEstimator<?>>
lmmests
L-Moment estimators.private static Logging
LOG
Class logger.protected java.util.Collection<LogMADDistributionEstimator<?>>
logmadests
Logspace Median average deviation from median estimators.protected java.util.Collection<LogMOMDistributionEstimator<?>>
logmomests
Logspace Method of Moments estimators.protected java.util.Collection<MADDistributionEstimator<?>>
madests
Median average deviation from median estimators.protected java.util.Collection<MOMDistributionEstimator<?>>
momests
Mean and variance based estimators.static BestFitEstimator
STATIC
Static instance.
-
Constructor Summary
Constructors Modifier Constructor Description protected
BestFitEstimator()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A> Distribution
estimate(A data, NumberArrayAdapter<?,A> adapter)
General form of the parameter estimationjava.lang.Class<? super Distribution>
getDistributionClass()
Get the class that is produced by the estimator.java.lang.String
toString()
private void
warnIfDebugging(java.lang.ArithmeticException e, DistributionEstimator<?> est)
Warn on arithmetic errors, if debug logging is enabled-
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
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
STATIC
public static final BestFitEstimator STATIC
Static instance.
-
momests
protected java.util.Collection<MOMDistributionEstimator<?>> momests
Mean and variance based estimators.
-
madests
protected java.util.Collection<MADDistributionEstimator<?>> madests
Median average deviation from median estimators.
-
lmmests
protected java.util.Collection<LMMDistributionEstimator<?>> lmmests
L-Moment estimators.
-
logmomests
protected java.util.Collection<LogMOMDistributionEstimator<?>> logmomests
Logspace Method of Moments estimators.
-
logmadests
protected java.util.Collection<LogMADDistributionEstimator<?>> logmadests
Logspace Median average deviation from median estimators.
-
-
Method Detail
-
estimate
public <A> Distribution estimate(A data, NumberArrayAdapter<?,A> adapter)
Description copied from interface:DistributionEstimator
General form of the parameter estimation- Specified by:
estimate
in interfaceDistributionEstimator<Distribution>
- Parameters:
data
- Data setadapter
- Number array adapter- Returns:
- Estimated distribution
-
warnIfDebugging
private void warnIfDebugging(java.lang.ArithmeticException e, DistributionEstimator<?> est)
Warn on arithmetic errors, if debug logging is enabled- Parameters:
e
- Errorest
- Estimator
-
getDistributionClass
public java.lang.Class<? super Distribution> getDistributionClass()
Description copied from interface:DistributionEstimator
Get the class that is produced by the estimator.- Specified by:
getDistributionClass
in interfaceDistributionEstimator<Distribution>
- Returns:
- Distribution class
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-