public class BestFitEstimator extends Object implements DistributionEstimator<Distribution>
Modifier and Type | Class and Description |
---|---|
static class |
BestFitEstimator.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private Collection<LMMDistributionEstimator<?>> |
lmmests
L-Moment estimators.
|
private static Logging |
LOG
Class logger.
|
private Collection<LogMADDistributionEstimator<?>> |
logmadests
Logspace Median average deviation from median estimators.
|
private Collection<LogMOMDistributionEstimator<?>> |
logmomests
Logspace Method of Moments estimators.
|
private Collection<MADDistributionEstimator<?>> |
madests
Median average deviation from median estimators.
|
private Collection<MOMDistributionEstimator<?>> |
momests
Mean and variance based estimators.
|
static BestFitEstimator |
STATIC
Static instance.
|
Modifier | Constructor and Description |
---|---|
protected |
BestFitEstimator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
computeMAD(double[] data,
double median,
double[] scratch,
int len) |
<A> Distribution |
estimate(A data,
NumberArrayAdapter<?,A> adapter)
General form of the parameter estimation
|
Class<? super Distribution> |
getDistributionClass()
Get the class that is produced by the estimator.
|
private double |
testFit(double[] x,
double[] test,
Distribution dist)
Test the quality of a fit.
|
String |
toString() |
private static final Logging LOG
public static final BestFitEstimator STATIC
private Collection<MOMDistributionEstimator<?>> momests
private Collection<MADDistributionEstimator<?>> madests
private Collection<LMMDistributionEstimator<?>> lmmests
private Collection<LogMOMDistributionEstimator<?>> logmomests
private Collection<LogMADDistributionEstimator<?>> logmadests
protected BestFitEstimator()
public <A> Distribution estimate(A data, NumberArrayAdapter<?,A> adapter)
DistributionEstimator
estimate
in interface DistributionEstimator<Distribution>
data
- Data setadapter
- Number array adapterpublic double computeMAD(double[] data, double median, double[] scratch, int len)
private double testFit(double[] x, double[] test, Distribution dist) throws ArithmeticException
x
- Input datatest
- Scratch space for testing (will be overwritten!)dist
- DistributionArithmeticException
public Class<? super Distribution> getDistributionClass()
DistributionEstimator
getDistributionClass
in interface DistributionEstimator<Distribution>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.