I
- type of independent dataD
- type of dependent dataM
- type of modelpublic interface ResidualCalculator<I,D,M extends Model<I,D>>
Modifier and Type | Method and Description |
---|---|
double |
computeResidual(IndependentPair<I,D> data)
Compute the residual for a single point
|
void |
computeResiduals(List<? extends IndependentPair<I,D>> data,
double[] residuals)
Compute the residual for a set of data points
|
void |
setModel(M model)
Set the current model being evaluated.
|
void setModel(M model)
ResidualCalculator
might
pre-cache variables based on the model for error computation.model
- the modeldouble computeResidual(IndependentPair<I,D> data)
data
- the datavoid computeResiduals(List<? extends IndependentPair<I,D>> data, double[] residuals)
data
- the dataresiduals
- the array to write the residuals into