![JAR search and dependency download from the Maven repository](/logo.png)
com.github.TKnudsen.ComplexDataObject.model.distanceMeasure.Double.DoubleDistanceMeasure 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 java.io.Serializable;
import com.github.TKnudsen.ComplexDataObject.model.distanceMeasure.IDistanceMeasure;
/**
*
* Title: DoubleDistanceMeasure
*
*
*
* Description: Basic class for all double[] distance measures.
*
*
*
* Copyright: Copyright (c) 2017-2018,
* https://github.com/TKnudsen/ComplexDataObject
*
*
* @author Juergen Bernard
* @version 1.05
*/
public abstract class DoubleDistanceMeasure implements IDistanceMeasure, Serializable {
/**
*
*/
private static final long serialVersionUID = -2559705521219780141L;
public double applyAsDouble(double[] t, double[] u) {
return getDistance(t, u);
}
public double dist(double[] a, double[] b) {
return getDistance(a, b);
}
@Override
public String getDescription() {
return getName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy