WeightFunctions Class

Contains a set of standard weight functions that can be used in linear and nonlinear curve fitting.

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public abstract class WeightFunctions
Inheritance
Object  →  WeightFunctions

Remarks

A weight function is a function that takes two parameters: the X and Y values of an observation, and returns the weight associated with that observation. The function is encapsulated in a function of two variables delegate.

The WeightFunctions class defines a set of commonly used weight functions for use in linear and nonlinear least squares fitting.

Constructors

WeightFunctionsInitializes a new instance of the WeightFunctions class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetBisquareWeightVectorFromErrors(Vector<Double>) Returns a weight vector corresponding to the supplied error values using Tukey's bisquare estimator.
GetBisquareWeightVectorFromErrors(Vector<Double>, Double) Returns a weight vector corresponding to the supplied error values using Tukey's bisquare estimator.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetHuberWeightVectorFromErrors(Vector<Double>) Returns a weight vector corresponding to the supplied error values using Huber's M-estimator.
GetHuberWeightVectorFromErrors(Vector<Double>, Double) Returns a weight vector corresponding to the supplied error values using Huber's M-estimator.
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetWeightVectorFromErrors Returns a weight vector corresponding to the supplied error values.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

None There is no weight function. All weights are assumed to be equal.
OneOverX The weight is equal to the reciprocal of the x-value.
OneOverXSquared The weight is equal to the reciprocal of the square of the x-value.
OneOverY The weight is equal to the reciprocal of the y-value.
OneOverYSquared The weight is equal to the reciprocal of the square of the y-value.

See Also