CurveFitter<T>.WeightFunction Property

Gets or sets the weight function.

Definition

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.3
C#
public Func<T, T, T> WeightFunction { get; set; }

Property Value

Func<T, T, T>

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.

See Also