Click or drag to resize

RelativeVarianceScalingGetWeight 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#
public double GetWeight(
	double yr,
	int i
)

Parameters

yr  Double

[Missing <param name="yr"/> documentation for "M:Altaxo.Calc.Regression.Nonlinear.RelativeVarianceScaling.GetWeight(System.Double,System.Int32)"]

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.

Implements

IVarianceScalingGetWeight(Double, Int32)
See Also