Click or drag to resize

IVarianceScalingGetWeight Method

Gets the weight depending on the real data (roughly speaking: inverse of variance).

Namespace: Altaxo.Calc.Regression.Nonlinear
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
double GetWeight(
	double yreal,
	int i
)

Parameters

yreal  Double
The real (measured) data.
i  Int32
The index of the measured data point in the table.

Return Value

Double
The weight used to scale the fit difference (yreal - yfit). If a variance is given for the current data point, return 1 / variance.
See Also