Catalano.Math.Distances
Class EuclideanDistance
- java.lang.Object
-
- Catalano.Math.Distances.EuclideanDistance
-
- All Implemented Interfaces:
- IDistance<double[]>, IDivergence<double[]>, java.io.Serializable
public class EuclideanDistance extends java.lang.Object implements IDistance<double[]>
Euclidean distance. Is the "ordinary" (i.e straight line) distance between two points in Euclidean space.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description EuclideanDistance()Initializes a new instance of the EuclideanDistance 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
-
EuclideanDistance
public EuclideanDistance()
Initializes a new instance of the EuclideanDistance 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