Package samer.mds

Class Minkowski

  • java.lang.Object
    • samer.mds.Minkowski
  • All Implemented Interfaces:
    MDS.Metric


    public class Minkowski
    extends java.lang.Object
    implements MDS.Metric
    Minkowski metric
    • Constructor Summary

      Constructors 
      Constructor and Description
      Minkowski(double p) 
    • 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

      • Minkowski

        public Minkowski(double p)
    • 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