Maths.DistanceMetric

References
public enum Maths.DistanceMetric
Enumerates the available distance metrics used in the Maths.Distance(Maths.DistanceMetric, double[], double[]) like functions.

Enum values

NameValueDescription
Euclidean0Linear distance using pythagoras' formula.
Quadrance1The square of the euclidean distance (faster to compute).
Manhattan2The sum of the absolute differences per dimension, also called the L1-norm.
Canberra3A weighted version of the Manhattan distance. It computes the sum of the absolute differences, divided by the sum of the absolute values per dimension.
Angular4Assuming the coordinates represent vectors, computes the angular separation between them, ignoring the scale. I.e. this metric compared the directions of vectors with no regard to their magnitudes.
Radial5Assuming the coordinates represent vectors, computes the radial separation between them, ignoring their direction. I.e. this metric compares the lengths of vectors with no regard to their directions.
Pearson6One minus the Pearson correlation coefficient.
Jaccard7One minus the Jaccard index. The Jaccard index is the ratio of equal, non-zero elements in either set to the total number of non-zero elements.
Chebyshev8The infinity norm of the difference.
Hamming9The number of different coordinate values.
MeanAbsoluteError10Normalised Manhattan distance, i.e. the Manhattan distance divided by the number of dimensions.
MeanSquaredError11Normalised Quadrance, i.e. the quadrance distance divided by the number of dimensions.
RootMeanSquaredError12Root of the Mean Squared Error.