Click or drag to resize
DigitalRuneRadialBasisRegressionFDistanceFunction Property
Gets or sets the distance function.

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public Func<VectorF, VectorF, int, float> DistanceFunction { get; set; }

Property Value

Type: FuncVectorF, VectorF, Int32, Single

The distance function that computes the distance between a new data point x and the reference data point xi. The first parameter is the new data point x. The second parameter is the reference data point xi. The third parameter is the index i of the reference data point xi. (The third parameter can be ignored in most cases.)

The default distance function computes the Euclidean distance between x and xi.

(The distance function could be generalized to the Mahalanobis distance.)

Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is .
See Also