Weight Functions.Get Weight Vector From Errors Method
Returns a weight vector corresponding to the supplied error values.
Definition
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A vector containing the weights corresponding to the specified error values.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.