The Distance type exposes the following members.

Constructors

  NameDescription
Distance
Initializes a new instance of the Distance class

Methods

  NameDescription
CityBlockDistance
Compute the city-block (Manhattan) distance between two data sets (1 norm).
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
EuclideanDistance
Computes the Euclidean distance between two data sets (2 norm).
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MaximumDistance
Computes the maximum (Chebychev) distance between two data sets.
PowerFunction
Power distance function. Encapsulates GetDistance() on a newly constructed Distance.PowerDistance object as a Distance.Function delegate.
SquaredEuclideanDistance
Computes the squared Euclidean distance between two data sets.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
CityBlockFunction
City-block (Manhattan) distance function. Encapsulates Distance.CityBlockDistance as a Distance.Function delegate.
EuclideanFunction
Euclidean distance function. Encapsulates Distance.EuclideanDistance as a Distance.Function delegate.
MaximumFunction
Maximum (Chebychev) distance function. Encapsulates Distance.MaximumDistance as a Distance.Function delegate.
SquaredEuclideanFunction
Squared Euclidean distance function. Encapsulates Distance.SquaredEuclideanDistance as a Distance.Function delegate.

See Also