Tolerance met function delegate.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public delegate bool ToleranceMetFunction( double tol, DoubleVector lastSoln, DoubleVector currentSoln, DoubleVector lastResiduals, DoubleVector currentResiduals ) |
| Visual Basic (Declaration) |
|---|
Public Delegate Function ToleranceMetFunction ( _ tol As Double, _ lastSoln As DoubleVector, _ currentSoln As DoubleVector, _ lastResiduals As DoubleVector, _ currentResiduals As DoubleVector _ ) As Boolean |
| Visual C++ |
|---|
public delegate bool ToleranceMetFunction( double tol, DoubleVector^ lastSoln, DoubleVector^ currentSoln, DoubleVector^ lastResiduals, DoubleVector^ currentResiduals ) |
Parameters
- tol
- Type: System..::.Double
The tolerance specified by the particular instance of DoubleIterativelyReweightedLeastSq.
- lastSoln
- Type: CenterSpace.NMath.Core..::.DoubleVector
The weighted least squares solution from the previous iteration.
- currentSoln
- Type: CenterSpace.NMath.Core..::.DoubleVector
The weighted least squares solution from the current iteration.
- lastResiduals
- Type: CenterSpace.NMath.Core..::.DoubleVector
The vector of residuals from the previous iteration.
- currentResiduals
- Type: CenterSpace.NMath.Core..::.DoubleVector
The vector of residuals from the current iteration.
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.