Documentation of 'Catalano.Math.Distances.ManhattanDistance' Java class
ManhattanDistance
Catalano.Math.Distances

Class ManhattanDistance

  • All Implemented Interfaces:
    IDistance<double[]>, IDivergence<double[]>, java.io.Serializable


    public class ManhattanDistance
    extends java.lang.Object
    implements IDistance<double[]>
    Manhattan distance. It's knew as taxicab distance.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ManhattanDistance()
      Initializes a new instance of the ManhattanDistance class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double Compute(double[] u, double[] v)
      Compute the distance between the vectors.
      • Methods inherited from class java.lang.Object

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

      • ManhattanDistance

        public ManhattanDistance()
        Initializes a new instance of the ManhattanDistance class.
    • Method Detail

      • Compute

        public double Compute(double[] u,
                              double[] v)
        Description copied from interface: IDivergence
        Compute the distance between the vectors.
        Specified by:
        Compute in interface IDistance<double[]>
        Specified by:
        Compute in interface IDivergence<double[]>
        Parameters:
        u - Vector.
        v - Vector.
        Returns:
        Distance.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.