Interface for distance metric algorithms.

Namespace:  AForge.Math.Metrics
Assembly:  AForge.Math (in AForge.Math.dll) Version: (


public interface IDistance


The interface defines a set of methods implemented by distance metric algorithms. These algorithms typically take a set of points and return a distance measure of the x and y coordinates. In this case, the points are represented by two vectors.

Distance metric algorithms are used in many machine learning algorithms e.g K-nearest neighbor and K-means clustering.

For additional details about distance metrics, documentation of the particular algorithms should be studied.

See Also