Class LeastSquaresFactory.LocalLeastSquaresProblem.UnweightedEvaluation
- java.lang.Object
-
- org.apache.commons.math3.fitting.leastsquares.AbstractEvaluation
-
- org.apache.commons.math3.fitting.leastsquares.LeastSquaresFactory.LocalLeastSquaresProblem.UnweightedEvaluation
-
- All Implemented Interfaces:
LeastSquaresProblem.Evaluation
- Enclosing class:
- LeastSquaresFactory.LocalLeastSquaresProblem
private static class LeastSquaresFactory.LocalLeastSquaresProblem.UnweightedEvaluation extends AbstractEvaluation
Container with the model evaluation at a particular point.
-
-
Field Summary
Fields Modifier and Type Field Description private RealMatrix
jacobian
Derivative at point.private RealVector
point
Point of evaluation.private RealVector
residuals
Computed residuals.
-
Constructor Summary
Constructors Modifier Constructor Description private
UnweightedEvaluation(RealVector values, RealMatrix jacobian, RealVector target, RealVector point)
Create anLeastSquaresProblem.Evaluation
with no weights.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealMatrix
getJacobian()
Get the weighted Jacobian matrix.RealVector
getPoint()
Get the abscissa (independent variables) of this evaluation.RealVector
getResiduals()
Get the weighted residuals.-
Methods inherited from class org.apache.commons.math3.fitting.leastsquares.AbstractEvaluation
getCost, getCovariances, getRMS, getSigma
-
-
-
-
Field Detail
-
point
private final RealVector point
Point of evaluation.
-
jacobian
private final RealMatrix jacobian
Derivative at point.
-
residuals
private final RealVector residuals
Computed residuals.
-
-
Constructor Detail
-
UnweightedEvaluation
private UnweightedEvaluation(RealVector values, RealMatrix jacobian, RealVector target, RealVector point)
Create anLeastSquaresProblem.Evaluation
with no weights.- Parameters:
values
- the computed function valuesjacobian
- the computed function Jacobiantarget
- the observed valuespoint
- the abscissa
-
-
Method Detail
-
getJacobian
public RealMatrix getJacobian()
Get the weighted Jacobian matrix.- Returns:
- the weighted Jacobian: W1/2 J.
-
getPoint
public RealVector getPoint()
Get the abscissa (independent variables) of this evaluation.- Returns:
- the point provided to
LeastSquaresProblem.evaluate(RealVector)
.
-
getResiduals
public 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.
-
-