Catalano.Math.Distances
Class ChiSquareDistance
- java.lang.Object
-
- Catalano.Math.Distances.ChiSquareDistance
-
- All Implemented Interfaces:
- IDistance<double[]>, IDivergence<double[]>, java.io.Serializable
public class ChiSquareDistance extends java.lang.Object implements IDistance<double[]>
Chi-Square histogram distance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ChiSquareDistance()Initializes a new instance of the ChiSquareDistance 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
-
ChiSquareDistance
public ChiSquareDistance()
Initializes a new instance of the ChiSquareDistance 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