Package samer.mds

Class Manhatten

  • java.lang.Object
    • samer.mds.Manhatten
  • All Implemented Interfaces:

    public class Manhatten
    extends java.lang.Object
    implements MDS.Metric
    city block or manhatten metricc
    • Constructor Summary

      Constructor and Description
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Manhatten

        public Manhatten()
    • 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 interface MDS.Metric