Weight Functions.Get Weight Vector From Errors Method
Returns a weight vector corresponding to the supplied error values.
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A vector containing the weights corresponding to the specified error values.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Vector<double> GetWeightVectorFromErrors(
Vector<double> errors
)
Parameters
Return Value
Vector<Double>A vector containing the weights corresponding to the specified error values.
Remarks
When observations have known errors or standard deviations, the weight of an observation is set equal to the inverse square of the error of the observation.