Class ManhattenMatricQ


  • public class ManhattenMatricQ
    extends MetricQ
    Manhattan distance metric for vector types.

    The ManhattanMetric, also known as the taxicab metric or the 1-norm, is a
    metric on the Euclidean n-Plane. The Manhattan distance between two
    points

    P = (p_1, p_2, ..., p_n)
    and
    Q = (q_1, q_2, ..., q_n)
    is defined as
    \sum_{i=1}^{n} |p_i - q_i|

    • Constructor Detail

      • ManhattenMatricQ

        public ManhattenMatricQ​(long cPtr,
                                boolean cMemoryOwn)
      • ManhattenMatricQ

        public ManhattenMatricQ()