| DoubleIterativelyReweightedLeastSqSolutionUnchanged Method |
Default convergence function for IRLS. Can be made into a ToleranceMet delegate.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static bool SolutionUnchanged(
double tol,
DoubleVector lastSoln,
DoubleVector currentSoln,
DoubleVector lastResiduals,
DoubleVector currentResiduals
)
Public Shared Function SolutionUnchanged (
tol As Double,
lastSoln As DoubleVector,
currentSoln As DoubleVector,
lastResiduals As DoubleVector,
currentResiduals As DoubleVector
) As Boolean
public:
static bool SolutionUnchanged(
double tol,
DoubleVector^ lastSoln,
DoubleVector^ currentSoln,
DoubleVector^ lastResiduals,
DoubleVector^ currentResiduals
)
static member SolutionUnchanged :
tol : float *
lastSoln : DoubleVector *
currentSoln : DoubleVector *
lastResiduals : DoubleVector *
currentResiduals : DoubleVector -> bool
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
Booleantrue if the solution has not changed, within tolerance, from
the previous solution; otherwise
false.
See Also