﻿ Distance Methods

# Distance Methods

The Distance type exposes the following members.

Methods
NameDescription
Angular
Gets the Angular distance between two points.
ArgMax
Gets the ArgMax distance between two points.
BitwiseHamming Obsolete.
Gets the Bitwise Hamming distance between two points. Please use the Distance.Hamming method or the Hamming class instead.
BrayCurtis
Gets the BrayCurtis distance between two points.
Canberra
Gets the Canberra distance between two points.
Chebyshev
Gets the Chebyshev distance between two points.
Cosine
Gets the Cosine distance between two points.
Dice(Double, Double)
Gets the Dice distance between two points.
Dice(Int32, Int32)
Gets the Dice distance between two points.
Euclidean(Double, Double)
Gets the Euclidean distance between two points.
Euclidean(Double, Double)
Gets the Euclidean distance between two points.
Euclidean(TupleDouble, Double, TupleDouble, Double)
Gets the Euclidean distance between two points.
Euclidean(SparseDouble, SparseDouble)
Gets the Euclidean distance between two points.
Euclidean(Double, Double, Double, Double)
Gets the Euclidean distance between two points.
GetDistanceT
Gets the a IDistanceT object implementing a particular method of the Distance static class.
Hamming(Byte, Byte)
Gets the Hamming distance between two points.
Hamming(BitArray, BitArray)
Gets the Hamming distance between two points.
Hamming(Double, Double)
Gets the Hamming distance between two points.
Hamming(String, String)
Gets the Hamming distance between two points.
Hellinger
Gets the Hellinger distance between two points.
IsMetric(FuncDouble, Double, Double)
Checks whether a function is a real metric distance, i.e. respects the triangle inequality. Please note that a function can still pass this test and not respect the triangle inequality.
IsMetric(FuncInt32, Int32, Double)
Checks whether a function is a real metric distance, i.e. respects the triangle inequality. Please note that a function can still pass this test and not respect the triangle inequality.
IsMetricT(IDistanceT)
Checks whether a function is a real metric distance, i.e. respects the triangle inequality. Please note that a function can still pass this test and not respect the triangle inequality.
Jaccard
Gets the Jaccard distance between two points.
Kulczynski(Double, Double)
Gets the Kulczynski distance between two points.
Kulczynski(Int32, Int32)
Gets the Kulczynski distance between two points.
Levenshtein(String, String)
Gets the Levenshtein distance between two points.
LevenshteinT(T, T)
Gets the Levenshtein distance between two points.
Mahalanobis(Double, Double)
Gets the Mahalanobis distance between two points.
Mahalanobis(Double, Double, CholeskyDecomposition)
Gets the Mahalanobis distance between two points.
Mahalanobis(Double, Double, SingularValueDecomposition)
Gets the Mahalanobis distance between two points.
Mahalanobis(Double, Double, Double)
Gets the Mahalanobis distance between two points.
Manhattan(Double, Double)
Gets the Manhattan distance between two points.
Manhattan(Int32, Int32)
Gets the Manhattan distance between two points.
Matching(Double, Double)
Gets the Matching distance between two points.
Matching(Int32, Int32)
Gets the Matching distance between two points.
Minkowski(Double, Double)
Gets the Minkowski distance between two points.
Minkowski(Int32, Int32)
Gets the Minkowski distance between two points.
Minkowski(Double, Double, Double)
Gets the Minkowski distance between two points.
Minkowski(Int32, Int32, Double)
Gets the Minkowski distance between two points.
Modular(Double, Double)
Gets the Modular distance between two points.
Modular(Int32, Int32)
Gets the Modular distance between two points.
Modular(Double, Double, Int32)
Gets the Modular distance between two points.
Modular(Int32, Int32, Int32)
Gets the Modular distance between two points.
RogersTanimoto(Double, Double)
Gets the RogersTanimoto distance between two points.
RogersTanimoto(Int32, Int32)
Gets the RogersTanimoto distance between two points.
RusselRao(Double, Double)
Gets the RusselRao distance between two points.
RusselRao(Int32, Int32)
Gets the RusselRao distance between two points.
SokalMichener(Double, Double)
Gets the SokalMichener distance between two points.
SokalMichener(Int32, Int32)
Gets the SokalMichener distance between two points.
SokalSneath(Double, Double)
Gets the SokalSneath distance between two points.
SokalSneath(Int32, Int32)
Gets the SokalSneath distance between two points.
SquareEuclidean(Double, Double)
Gets the SquareEuclidean distance between two points.
SquareEuclidean(Double, Double)
Gets the SquareEuclidean distance between two points.
SquareEuclidean(SparseDouble, SparseDouble)
Gets the SquareEuclidean distance between two points.
SquareEuclidean(Double, Double, Double, Double)
Gets the SquareEuclidean distance between two points.
SquareMahalanobis(Double, Double)
Gets the SquareMahalanobis distance between two points.
SquareMahalanobis(Double, Double, CholeskyDecomposition)
Gets the SquareMahalanobis distance between two points.
SquareMahalanobis(Double, Double, SingularValueDecomposition)
Gets the SquareMahalanobis distance between two points.
SquareMahalanobis(Double, Double, Double)
Gets the SquareMahalanobis distance between two points.
WeightedEuclidean(Double, Double)
Gets the WeightedEuclidean distance between two points.
WeightedEuclidean(Double, Double, Double)
Gets the WeightedEuclidean distance between two points.
WeightedEuclidean(Double, Double, Int32)
Gets the WeightedEuclidean distance between two points.
WeightedSquareEuclidean(Double, Double)
Gets the WeightedSquareEuclidean distance between two points.
WeightedSquareEuclidean(Double, Double, Double)
Gets the WeightedSquareEuclidean distance between two points.
WeightedSquareEuclidean(Double, Double, Int32)
Gets the WeightedSquareEuclidean distance between two points.
Yule(Double, Double)
Gets the Yule distance between two points.
Yule(Int32, Int32)
Gets the Yule distance between two points.
Top