WeightFunctions.GetWeightVectorFromErrors 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#
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