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

org.deeplearning4j.distancefunction.EuclideanDistance Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
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