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