Click or drag to resize

DoubleBisquareWeightingFunctionGetWeights Method

Computes the bisquare weights for the residuals using the formula: w(r) = (1 - r^2)^2 if |r| is less than 1 and w(r) = 0 if |r| is greater or equal to 1. Here r is the adjusted redisuals from the AdjustedResidual function of the base class DoubleLeastSqWeightingFunction.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public override void GetWeights(
	DoubleVector residuals,
	ref DoubleVector weights
)

Parameters

residuals  DoubleVector
Residuals from the previous iteration in an iteratively Reweighted least squares problem.
weights  DoubleVector
The weights. Note if the input weights vector is non-null and has the same length as the input residual vector its contents are overwritten by the new weights. Otherwise a new vector containing the weights is returned.

Implements

IDoubleLeastSqWeightingFunctionGetWeights(DoubleVector, DoubleVector)
See Also