IVarianceScalingGetWeight Method |
Gets the weight in dependence of the real data (roughly spoken: inverse of variance).
Namespace: Altaxo.Calc.Regression.NonlinearAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
DoubleThe 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