Top Description Interfaces Classes
[default module]

Package org.apache.commons.math3.ml.distance


Common distance measures.

Interface Summary

Modifier and TypeInterface and Description
public interface
DistanceMeasure

Interface for distance measures of n-dimensional vectors.

Class Summary

Modifier and TypeClass and Description
public class
CanberraDistance

Calculates the Canberra distance between two points.

public class
ChebyshevDistance

Calculates the L∞ (max of abs) distance between two points.

public class
EarthMoversDistance

Calculates the Earh Mover's distance (also known as Wasserstein metric) between two distributions.

public class
EuclideanDistance

Calculates the L2 (Euclidean) distance between two points.

public class
ManhattanDistance

Calculates the L1 (sum of abs) distance between two points.