Click or drag to resize

DoubleIterativelyReweightedLeastSqToleranceMetFunction Delegate

Tolerance met function delegate.

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


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

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