Class LeastSquaresFactory.LocalLeastSquaresProblem.LazyUnweightedEvaluation
java.lang.Object
org.apache.commons.math3.fitting.leastsquares.AbstractEvaluation
org.apache.commons.math3.fitting.leastsquares.LeastSquaresFactory.LocalLeastSquaresProblem.LazyUnweightedEvaluation
- All Implemented Interfaces:
LeastSquaresProblem.Evaluation
- Enclosing class:
LeastSquaresFactory.LocalLeastSquaresProblem
private static class LeastSquaresFactory.LocalLeastSquaresProblem.LazyUnweightedEvaluation
extends AbstractEvaluation
Container with the model lazy evaluation at a particular point.
- Since:
- 3.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ValueAndJacobianFunctionModel and Jacobian functions.private final RealVectorPoint of evaluation.private final RealVectorTarget values for the model function at optimum. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLazyUnweightedEvaluation(ValueAndJacobianFunction model, RealVector target, RealVector point) Create anLeastSquaresProblem.Evaluationwith no weights. -
Method Summary
Modifier and TypeMethodDescriptionGet the weighted Jacobian matrix.getPoint()Get the abscissa (independent variables) of this evaluation.Get the weighted residuals.Methods inherited from class AbstractEvaluation
getCost, getCovariances, getRMS, getSigma
-
Field Details
-
point
Point of evaluation. -
model
Model and Jacobian functions. -
target
Target values for the model function at optimum.
-
-
Constructor Details
-
LazyUnweightedEvaluation
private LazyUnweightedEvaluation(ValueAndJacobianFunction model, RealVector target, RealVector point) Create anLeastSquaresProblem.Evaluationwith no weights.- Parameters:
model- the model functiontarget- the observed valuespoint- the abscissa
-
-
Method Details
-
getJacobian
Get the weighted Jacobian matrix.- Returns:
- the weighted Jacobian: W1/2 J.
-
getPoint
Get the abscissa (independent variables) of this evaluation.- Returns:
- the point provided to
LeastSquaresProblem.evaluate(RealVector).
-
getResiduals
Get the weighted residuals. The residual is the difference between the observed (target) values and the model (objective function) value. There is one residual for each element of the vector-valued function. The raw residuals are then multiplied by the square root of the weight matrix.- Returns:
- the weighted residuals: W1/2 K.
-