| DoubleIterativelyReweightedLeastSqToleranceMetFunction Delegate |
Tolerance met function delegate.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public delegate bool ToleranceMetFunction(
double tol,
DoubleVector lastSoln,
DoubleVector currentSoln,
DoubleVector lastResiduals,
DoubleVector currentResiduals
)
Public Delegate Function ToleranceMetFunction (
tol As Double,
lastSoln As DoubleVector,
currentSoln As DoubleVector,
lastResiduals As DoubleVector,
currentResiduals As DoubleVector
) As Boolean
public delegate bool ToleranceMetFunction(
double tol,
DoubleVector^ lastSoln,
DoubleVector^ currentSoln,
DoubleVector^ lastResiduals,
DoubleVector^ currentResiduals
)
type ToleranceMetFunction =
delegate of
tol : float *
lastSoln : DoubleVector *
currentSoln : DoubleVector *
lastResiduals : DoubleVector *
currentResiduals : DoubleVector -> bool
Parameters
- tol Double
- The tolerance specified by the particular instance of
DoubleIterativelyReweightedLeastSq.
- lastSoln DoubleVector
- The weighted least squares solution from the previous
iteration.
- currentSoln DoubleVector
- The weighted least squares solution from the current
iteration.
- lastResiduals DoubleVector
- The vector of residuals from the previous
iteration.
- currentResiduals DoubleVector
- The vector of residuals from the current
iteration.
Return Value
BooleanRemarks
The tolerance met function wll be called at the
end of each iteration. If the function returns true, the algorithm is terminated,
otherwise iteration continues.
Note: if x is the current solution to the problem Ax = y, the residual vector is
is defined as Ax - y.
See Also