All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.TKnudsen.ComplexDataObject.model.distanceMeasure.Double.ChebyshevDistance Maven / Gradle / Ivy

Go to download

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