| 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public override void GetWeights(
DoubleVector residuals,
ref DoubleVector weights
)
Public Overrides Sub GetWeights (
residuals As DoubleVector,
ByRef weights As DoubleVector
)
public:
virtual void GetWeights(
DoubleVector^ residuals,
DoubleVector^% weights
) override
abstract GetWeights :
residuals : DoubleVector *
weights : DoubleVector byref -> unit
override GetWeights :
residuals : DoubleVector *
weights : DoubleVector byref -> unit
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