Click or drag to resize

DoubleIterativelyReweightedLeastSqSolutionUnchanged Method

Default convergence function for IRLS. Can be made into a ToleranceMet delegate.

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

Parameters

tol  Double
The convergence tolerance.
lastSoln  DoubleVector
The solution from the previous iteration.
currentSoln  DoubleVector
The current solution.
lastResiduals  DoubleVector
The residuals from the last iteration.
currentResiduals  DoubleVector
The current residuals.

Return Value

Boolean
true if the solution has not changed, within tolerance, from the previous solution; otherwise false.
See Also