Nonlinear Curve Fitter<T>.Weight Function Property
Gets or sets the weight function.
Definition
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.