Catalano.Math.Distances
Class ChebyshevDistance
- java.lang.Object
-
- Catalano.Math.Distances.ChebyshevDistance
-
- All Implemented Interfaces:
- IDistance<double[]>, IDivergence<double[]>, java.io.Serializable
public class ChebyshevDistance extends java.lang.Object implements IDistance<double[]>
Chebyshev distance. Is a metric defined on a vector space where the distance between two vectors is the greatest of their differences along any coordinate dimension.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ChebyshevDistance()Initializes a new instance of the ChevyshevDistance class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleCompute(double[] u, double[] v)Compute the distance between the vectors.
-
-
-
Constructor Detail
-
ChebyshevDistance
public ChebyshevDistance()
Initializes a new instance of the ChevyshevDistance class.
-
-
Method Detail
-
Compute
public double Compute(double[] u, double[] v)Description copied from interface:IDivergenceCompute the distance between the vectors.- Specified by:
Computein interfaceIDistance<double[]>- Specified by:
Computein interfaceIDivergence<double[]>- Parameters:
u- Vector.v- Vector.- Returns:
- Distance.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG