Nonlinear Curve Fitter<T>.Weight Function Property
Gets or sets the weight function.
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public Func<T, double, double> WeightFunction { get; set; }
Property Value
Func<T, Double, Double>Remarks
The weight function specifies a function that computes the weight that is to be applied to each observation in terms of the x and/or y-value of that observation. The property is a function of two variables delegate. The first parameter corresponds to the x-value of the observation. The second parameter corresponds to the y-value of the observation.
You can specify the individual weights to arbitrary values by setting the WeightVector property.