Click or drag to resize

DoubleIterativelyReweightedLeastSqToleranceMetFunction Delegate

Tolerance met function delegate.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public delegate bool ToleranceMetFunction(
	double tol,
	DoubleVector lastSoln,
	DoubleVector currentSoln,
	DoubleVector lastResiduals,
	DoubleVector currentResiduals
)

Parameters

tol
Type: SystemDouble
The tolerance specified by the particular instance of DoubleIterativelyReweightedLeastSq.
lastSoln
Type: CenterSpace.NMath.CoreDoubleVector
The weighted least squares solution from the previous iteration.
currentSoln
Type: CenterSpace.NMath.CoreDoubleVector
The weighted least squares solution from the current iteration.
lastResiduals
Type: CenterSpace.NMath.CoreDoubleVector
The vector of residuals from the previous iteration.
currentResiduals
Type: CenterSpace.NMath.CoreDoubleVector
The vector of residuals from the current iteration.

Return Value

Type: Boolean
Remarks
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