org.deeplearning4j.distancefunction.EuclideanDistance Maven / Gradle / Ivy
package org.deeplearning4j.distancefunction;
import org.jblas.DoubleMatrix;
public class EuclideanDistance extends BaseDistanceFunction {
/**
*
*/
private static final long serialVersionUID = -8043867712569910917L;
public EuclideanDistance(DoubleMatrix base) {
super(base);
}
@Override
public Double apply(DoubleMatrix input) {
return base.distance2(input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy