Package samer.mds
Class Manhatten
- java.lang.Object
-
- samer.mds.Manhatten
-
- All Implemented Interfaces:
- MDS.Metric
public class Manhatten extends java.lang.Object implements MDS.Metric
city block or manhatten metricc
-
-
Constructor Summary
Constructors Constructor and Description Manhatten()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double
d(double[] x, double[] y, double[] r)
return distance between x and y, put y-x in r
-
-
-
Method Detail
-
d
public double d(double[] x, double[] y, double[] r)
Description copied from interface:MDS.Metric
return distance between x and y, put y-x in r- Specified by:
d
in interfaceMDS.Metric
-
-