Click or drag to resize
Accord.NET (logo)

Distance Methods

The Distance type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleAngular
Gets the Angular distance between two points.
Public methodStatic memberCode exampleArgMax
Gets the ArgMax distance between two points.
Public methodStatic memberBitwiseHamming Obsolete.
Gets the Bitwise Hamming distance between two points. Please use the Distance.Hamming method or the Hamming class instead.
Public methodStatic memberCode exampleBrayCurtis
Gets the BrayCurtis distance between two points.
Public methodStatic memberCode exampleCanberra
Gets the Canberra distance between two points.
Public methodStatic memberCode exampleChebyshev
Gets the Chebyshev distance between two points.
Public methodStatic memberCode exampleCosine
Gets the Cosine distance between two points.
Public methodStatic memberCode exampleDice(Double, Double)
Gets the Dice distance between two points.
Public methodStatic memberCode exampleDice(Int32, Int32)
Gets the Dice distance between two points.
Public methodStatic memberCode exampleEuclidean(Double, Double)
Gets the Euclidean distance between two points.
Public methodStatic memberCode exampleEuclidean(Double, Double)
Gets the Euclidean distance between two points.
Public methodStatic memberCode exampleEuclidean(TupleDouble, Double, TupleDouble, Double)
Gets the Euclidean distance between two points.
Public methodStatic memberCode exampleEuclidean(SparseDouble, SparseDouble)
Gets the Euclidean distance between two points.
Public methodStatic memberCode exampleEuclidean(Double, Double, Double, Double)
Gets the Euclidean distance between two points.
Public methodStatic memberCode exampleGetDistanceT
Public methodStatic memberCode exampleHamming(Byte, Byte)
Gets the Hamming distance between two points.
Public methodStatic memberCode exampleHamming(BitArray, BitArray)
Gets the Hamming distance between two points.
Public methodStatic memberCode exampleHamming(Double, Double)
Gets the Hamming distance between two points.
Public methodStatic memberCode exampleHamming(String, String)
Gets the Hamming distance between two points.
Public methodStatic memberCode exampleHellinger
Gets the Hellinger distance between two points.
Public methodStatic memberIsMetric(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.
Public methodStatic memberIsMetric(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.
Public methodStatic memberIsMetricT(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.
Public methodStatic memberCode exampleJaccard
Gets the Jaccard distance between two points.
Public methodStatic memberCode exampleKulczynski(Double, Double)
Gets the Kulczynski distance between two points.
Public methodStatic memberCode exampleKulczynski(Int32, Int32)
Gets the Kulczynski distance between two points.
Public methodStatic memberCode exampleLevenshtein(String, String)
Gets the Levenshtein distance between two points.
Public methodStatic memberLevenshteinT(T, T)
Gets the Levenshtein distance between two points.
Public methodStatic memberCode exampleMahalanobis(Double, Double)
Gets the Mahalanobis distance between two points.
Public methodStatic memberCode exampleMahalanobis(Double, Double, CholeskyDecomposition)
Gets the Mahalanobis distance between two points.
Public methodStatic memberCode exampleMahalanobis(Double, Double, SingularValueDecomposition)
Gets the Mahalanobis distance between two points.
Public methodStatic memberCode exampleMahalanobis(Double, Double, Double)
Gets the Mahalanobis distance between two points.
Public methodStatic memberCode exampleManhattan(Double, Double)
Gets the Manhattan distance between two points.
Public methodStatic memberCode exampleManhattan(Int32, Int32)
Gets the Manhattan distance between two points.
Public methodStatic memberCode exampleMatching(Double, Double)
Gets the Matching distance between two points.
Public methodStatic memberCode exampleMatching(Int32, Int32)
Gets the Matching distance between two points.
Public methodStatic memberCode exampleMinkowski(Double, Double)
Gets the Minkowski distance between two points.
Public methodStatic memberCode exampleMinkowski(Int32, Int32)
Gets the Minkowski distance between two points.
Public methodStatic memberCode exampleMinkowski(Double, Double, Double)
Gets the Minkowski distance between two points.
Public methodStatic memberCode exampleMinkowski(Int32, Int32, Double)
Gets the Minkowski distance between two points.
Public methodStatic memberCode exampleModular(Double, Double)
Gets the Modular distance between two points.
Public methodStatic memberCode exampleModular(Int32, Int32)
Gets the Modular distance between two points.
Public methodStatic memberCode exampleModular(Double, Double, Int32)
Gets the Modular distance between two points.
Public methodStatic memberCode exampleModular(Int32, Int32, Int32)
Gets the Modular distance between two points.
Public methodStatic memberCode exampleRogersTanimoto(Double, Double)
Gets the RogersTanimoto distance between two points.
Public methodStatic memberCode exampleRogersTanimoto(Int32, Int32)
Gets the RogersTanimoto distance between two points.
Public methodStatic memberCode exampleRusselRao(Double, Double)
Gets the RusselRao distance between two points.
Public methodStatic memberCode exampleRusselRao(Int32, Int32)
Gets the RusselRao distance between two points.
Public methodStatic memberCode exampleSokalMichener(Double, Double)
Gets the SokalMichener distance between two points.
Public methodStatic memberCode exampleSokalMichener(Int32, Int32)
Gets the SokalMichener distance between two points.
Public methodStatic memberCode exampleSokalSneath(Double, Double)
Gets the SokalSneath distance between two points.
Public methodStatic memberCode exampleSokalSneath(Int32, Int32)
Gets the SokalSneath distance between two points.
Public methodStatic memberCode exampleSquareEuclidean(Double, Double)
Gets the SquareEuclidean distance between two points.
Public methodStatic memberCode exampleSquareEuclidean(Double, Double)
Gets the SquareEuclidean distance between two points.
Public methodStatic memberCode exampleSquareEuclidean(SparseDouble, SparseDouble)
Gets the SquareEuclidean distance between two points.
Public methodStatic memberCode exampleSquareEuclidean(Double, Double, Double, Double)
Gets the SquareEuclidean distance between two points.
Public methodStatic memberCode exampleSquareMahalanobis(Double, Double)
Gets the SquareMahalanobis distance between two points.
Public methodStatic memberCode exampleSquareMahalanobis(Double, Double, CholeskyDecomposition)
Gets the SquareMahalanobis distance between two points.
Public methodStatic memberCode exampleSquareMahalanobis(Double, Double, SingularValueDecomposition)
Gets the SquareMahalanobis distance between two points.
Public methodStatic memberCode exampleSquareMahalanobis(Double, Double, Double)
Gets the SquareMahalanobis distance between two points.
Public methodStatic memberCode exampleWeightedEuclidean(Double, Double)
Gets the WeightedEuclidean distance between two points.
Public methodStatic memberCode exampleWeightedEuclidean(Double, Double, Double)
Gets the WeightedEuclidean distance between two points.
Public methodStatic memberCode exampleWeightedEuclidean(Double, Double, Int32)
Gets the WeightedEuclidean distance between two points.
Public methodStatic memberCode exampleWeightedSquareEuclidean(Double, Double)
Gets the WeightedSquareEuclidean distance between two points.
Public methodStatic memberCode exampleWeightedSquareEuclidean(Double, Double, Double)
Gets the WeightedSquareEuclidean distance between two points.
Public methodStatic memberCode exampleWeightedSquareEuclidean(Double, Double, Int32)
Gets the WeightedSquareEuclidean distance between two points.
Public methodStatic memberCode exampleYule(Double, Double)
Gets the Yule distance between two points.
Public methodStatic memberCode exampleYule(Int32, Int32)
Gets the Yule distance between two points.
Top
See Also