M
- public class SymmetricTransferResidual2d<M extends Model<Point2d,Point2d> & MatrixTransformProvider> extends Object implements ResidualCalculator<Point2d,Point2d,M>
Constructor and Description |
---|
SymmetricTransferResidual2d() |
Modifier and Type | Method and Description |
---|---|
double |
computeResidual(IndependentPair<Point2d,Point2d> data)
Compute the residual for a single point
|
void |
computeResiduals(List<? extends IndependentPair<Point2d,Point2d>> data,
double[] residuals)
Compute the residual for a set of data points
|
void |
setModel(M model)
Set the current model being evaluated.
|
public SymmetricTransferResidual2d()
public void setModel(M model)
ResidualCalculator
ResidualCalculator
might
pre-cache variables based on the model for error computation.setModel
in interface ResidualCalculator<Point2d,Point2d,M extends Model<Point2d,Point2d> & MatrixTransformProvider>
model
- the modelpublic double computeResidual(IndependentPair<Point2d,Point2d> data)
ResidualCalculator
computeResidual
in interface ResidualCalculator<Point2d,Point2d,M extends Model<Point2d,Point2d> & MatrixTransformProvider>
data
- the datapublic void computeResiduals(List<? extends IndependentPair<Point2d,Point2d>> data, double[] residuals)
ResidualCalculator
computeResiduals
in interface ResidualCalculator<Point2d,Point2d,M extends Model<Point2d,Point2d> & MatrixTransformProvider>
data
- the dataresiduals
- the array to write the residuals into