![JAR search and dependency download from the Maven repository](/logo.png)
com.github.TKnudsen.ComplexDataObject.model.distanceMeasure.Double.ChebyshevDistance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of complex-data-object Show documentation
Show all versions of complex-data-object Show documentation
A library that models real-world objects in Java, referred to as ComplexDataObjects. Other features: IO and preprocessing of ComplexDataObjects.
The newest version!
package com.github.TKnudsen.ComplexDataObject.model.distanceMeasure.Double;
import org.apache.commons.math3.ml.distance.DistanceMeasure;
/**
*
* Title: ChebyshevDistance
*
*
*
* Description:
*
*
*
* Copyright: Copyright (c) 2017
*
*
* @author Juergen Bernard
* @version 1.01
*/
public class ChebyshevDistance extends DoubleDistanceMeasure {
/**
*
*/
private static final long serialVersionUID = 6401822601454203919L;
DistanceMeasure distanceMeasure = new org.apache.commons.math3.ml.distance.ChebyshevDistance();
@Override
public double getDistance(double[] o1, double[] o2) {
return distanceMeasure.compute(o1, o2);
}
@Override
public String getName() {
return "Chebyshev Distance Measure";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy