WeightFunctions.GetWeightVectorFromErrors 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.4
C#
public static Vector<double> GetWeightVectorFromErrors(
	Vector<double> errors
)

Parameters

errors  Vector<Double>
A vector containing the errors for each observation.

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.

See Also