Click or drag to resize

IVarianceScalingGetWeight Method

Gets the weight in dependence of the real data (roughly spoken: inverse of variance).

Namespace: Altaxo.Calc.Regression.Nonlinear
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.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). In case a variance is given for the current data, you should return (1/variance).
See Also