I - type of independent dataD - type of dependent dataM - type of modelpublic abstract class AbstractResidualCalculator<I,D,M extends Model<I,D>> extends Object implements ResidualCalculator<I,D,M>
| Constructor and Description |
|---|
AbstractResidualCalculator() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeResiduals(List<? extends IndependentPair<I,D>> data,
double[] errors)
Compute the residual for a set of data points
|
void |
setModel(M model)
Set the current model being evaluated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeResidualpublic AbstractResidualCalculator()
public void setModel(M model)
ResidualCalculatorResidualCalculator might
pre-cache variables based on the model for error computation.public void computeResiduals(List<? extends IndependentPair<I,D>> data, double[] errors)
ResidualCalculatorcomputeResiduals in interface ResidualCalculator<I,D,M extends Model<I,D>>data - the dataerrors - the array to write the residuals into