Class MinimumDistance

    • Field Detail

      • STATIC

        public static final MinimumDistance STATIC
        Static instance. Use this.
    • Constructor Detail

      • MinimumDistance

        @Deprecated
        public MinimumDistance()
        Deprecated.
        Use static instance!
        Constructor - use STATIC instead.
    • Method Detail

      • norm

        public double norm​(NumberVector v)
        Description copied from interface: Norm
        Compute the norm of object obj.
        Specified by:
        norm in interface Norm<NumberVector>
        Parameters:
        v - Object
        Returns:
        Norm
      • isMetric

        public boolean isMetric()
        Description copied from interface: Distance
        Is this distance function metric (satisfy the triangle inequality)
        Specified by:
        isMetric in interface Distance<NumberVector>
        Returns:
        true when metric.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object