private static class LeastSquaresFactory.LocalLeastSquaresProblem extends AbstractOptimizationProblem<LeastSquaresProblem.Evaluation> implements LeastSquaresProblem
LeastSquaresProblem
.Modifier and Type | Class and Description |
---|---|
private static class |
LeastSquaresFactory.LocalLeastSquaresProblem.UnweightedEvaluation
Container with the model evaluation at a particular point.
|
LeastSquaresProblem.Evaluation
Modifier and Type | Field and Description |
---|---|
private MultivariateJacobianFunction |
model
Model function.
|
private RealVector |
start
Initial guess.
|
private RealVector |
target
Target values for the model function at optimum.
|
Constructor and Description |
---|
LeastSquaresFactory.LocalLeastSquaresProblem(MultivariateJacobianFunction model,
RealVector target,
RealVector start,
ConvergenceChecker<LeastSquaresProblem.Evaluation> checker,
int maxEvaluations,
int maxIterations)
Create a
LeastSquaresProblem from the given data. |
Modifier and Type | Method and Description |
---|---|
LeastSquaresProblem.Evaluation |
evaluate(RealVector point)
Evaluate the model at the specified point.
|
int |
getObservationSize()
Get the number of observations (rows in the Jacobian) in this problem.
|
int |
getParameterSize()
Get the number of parameters (columns in the Jacobian) in this problem.
|
RealVector |
getStart()
Gets the initial guess.
|
getConvergenceChecker, getEvaluationCounter, getIterationCounter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConvergenceChecker, getEvaluationCounter, getIterationCounter
private RealVector target
private MultivariateJacobianFunction model
private RealVector start
LeastSquaresFactory.LocalLeastSquaresProblem(MultivariateJacobianFunction model, RealVector target, RealVector start, ConvergenceChecker<LeastSquaresProblem.Evaluation> checker, int maxEvaluations, int maxIterations)
LeastSquaresProblem
from the given data.model
- the model functiontarget
- the observed datastart
- the initial guesschecker
- the convergence checkermaxEvaluations
- the allowed evaluationsmaxIterations
- the allowed iterationspublic int getObservationSize()
getObservationSize
in interface LeastSquaresProblem
public int getParameterSize()
getParameterSize
in interface LeastSquaresProblem
public RealVector getStart()
getStart
in interface LeastSquaresProblem
public LeastSquaresProblem.Evaluation evaluate(RealVector point)
evaluate
in interface LeastSquaresProblem
point
- the parameter values.Copyright (c) 2003-2014 Apache Software Foundation