@Deprecated public abstract class AbstractEstimator extends java.lang.Object implements Estimator
This base class handles the boilerplates methods associated to thresholds settings, jacobian and error estimation.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_COST_EVALUATIONS
Deprecated.
Default maximal number of cost evaluations allowed.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
estimate(EstimationProblem problem)
Deprecated.
Solve an estimation problem.
|
double |
getChiSquare(EstimationProblem problem)
Deprecated.
Get the Chi-Square value.
|
int |
getCostEvaluations()
Deprecated.
Get the number of cost evaluations.
|
double[][] |
getCovariances(EstimationProblem problem)
Deprecated.
Get the covariance matrix of unbound estimated parameters.
|
int |
getJacobianEvaluations()
Deprecated.
Get the number of jacobian evaluations.
|
double |
getRMS(EstimationProblem problem)
Deprecated.
Get the Root Mean Square value.
|
double[] |
guessParametersErrors(EstimationProblem problem)
Deprecated.
Guess the errors in unbound estimated parameters.
|
void |
setMaxCostEval(int maxCostEval)
Deprecated.
Set the maximal number of cost evaluations allowed.
|
public static final int DEFAULT_MAX_COST_EVALUATIONS
public final void setMaxCostEval(int maxCostEval)
maxCostEval
- maximal number of cost evaluations allowedestimate(org.apache.commons.math.estimation.EstimationProblem)
public final int getCostEvaluations()
public final int getJacobianEvaluations()
public double getRMS(EstimationProblem problem)
getRMS
in interface Estimator
problem
- estimation problemEstimator.guessParametersErrors(EstimationProblem)
public double getChiSquare(EstimationProblem problem)
problem
- estimation problempublic double[][] getCovariances(EstimationProblem problem) throws EstimationException
getCovariances
in interface Estimator
problem
- estimation problemEstimationException
- if the covariance matrix
cannot be computed (singular problem)public double[] guessParametersErrors(EstimationProblem problem) throws EstimationException
Guessing is covariance-based, it only gives rough order of magnitude.
guessParametersErrors
in interface Estimator
problem
- estimation problemEstimationException
- if the covariances matrix cannot be computed
or the number of degrees of freedom is not positive (number of measurements
lesser or equal to number of parameters)Estimator.getRMS(EstimationProblem)
public abstract void estimate(EstimationProblem problem) throws EstimationException
The method should set the parameters of the problem to several
trial values until it reaches convergence. If this method returns
normally (i.e. without throwing an exception), then the best
estimate of the parameters can be retrieved from the problem
itself, through the EstimationProblem.getAllParameters
method.
estimate
in interface Estimator
problem
- estimation problem to solveEstimationException
- if the problem cannot be solvedCopyright © 2010 - 2020 Adobe. All Rights Reserved