Constructs a DoubleIterativelyReweightedLeastSq instance from the given parameters.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public DoubleIterativelyReweightedLeastSq(
	int maxIterations,
	double tolerance,
	IDoubleLeastSqWeightingFunction weightsFunction
)
Visual Basic (Declaration)
Public Sub New ( _
	maxIterations As Integer, _
	tolerance As Double, _
	weightsFunction As IDoubleLeastSqWeightingFunction _
)
Visual C++
public:
DoubleIterativelyReweightedLeastSq(
	int maxIterations, 
	double tolerance, 
	IDoubleLeastSqWeightingFunction^ weightsFunction
)

Parameters

maxIterations
Type: System..::.Int32
The maximum iterations to be performed. The algorithm will be terminated when it converges or the maximum number of iterations has been reached, which ever comes first.
tolerance
Type: System..::.Double
The tolerance given to the ToleranceMet function. If using the default ToleranceMet function, the tolerance should be a relative one since the difference between successive solutions will be a relative one, that is the difference will be divided by the larger of the two solutions producing a value between 0 and 1.
weightsFunction
Type: CenterSpace.NMath.Matrix..::.IDoubleLeastSqWeightingFunction
Weighting function.

See Also