Click or drag to resize

Distance Class

Class Distance provides functions for computing the distance between objects.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreDistance

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public class Distance

The Distance type exposes the following members.

Constructors
 NameDescription
Public methodDistanceInitializes a new instance of the Distance class
Top
Methods
 NameDescription
Public methodStatic memberCityBlockDistance Compute the city-block (Manhattan) distance between two data sets (1 norm).
Public methodStatic memberEuclideanDistance Computes the Euclidean distance between two data sets (2 norm).
Public methodStatic memberMaximumDistance Computes the maximum (Chebychev) distance between two data sets.
Public methodStatic memberPowerFunction Power distance function. Encapsulates GetDistance() on a newly constructed Distance.PowerDistance object as a Distance.Function delegate.
Public methodStatic memberSquaredEuclideanDistance Computes the squared Euclidean distance between two data sets.
Top
Fields
 NameDescription
Public fieldStatic memberCityBlockFunction City-block (Manhattan) distance function. Encapsulates Distance.CityBlockDistance as a Distance.Function delegate.
Public fieldStatic memberEuclideanFunction Euclidean distance function. Encapsulates Distance.EuclideanDistance as a Distance.Function delegate.
Public fieldStatic memberMaximumFunction Maximum (Chebychev) distance function. Encapsulates Distance.MaximumDistance as a Distance.Function delegate.
Public fieldStatic memberSquaredEuclideanFunction Squared Euclidean distance function. Encapsulates Distance.SquaredEuclideanDistance as a Distance.Function delegate.
Top
Remarks
Instances of delegate type Distance.Function are used by class ClusterAnalysis to compute the distances between singleton objects. Delegates are provided as static variables for euclidean, squared euclidean, city-block (Manhattan), maximum (Chebychev), and power distance functions.
See Also