CurveFitter.WeightFunction Property

Gets or sets the weight function.

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Func<double, double, double> WeightFunction { get; set; }

Property Value

Func<Double, 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.

See Also