Class AbstractDimensionsSelectingDistance<V extends FeatureVector<?>>

    • Field Detail

      • dimensions

        protected long[] dimensions
        The dimensions to be considered for distance computation.
    • Constructor Detail

      • AbstractDimensionsSelectingDistance

        public AbstractDimensionsSelectingDistance​(long[] dimensions)
        Constructor.
        Parameters:
        dimensions -
    • Method Detail

      • distance

        public double distance​(V o1,
                               V o2)
        Description copied from interface: PrimitiveDistance
        Computes the distance between two given DatabaseObjects according to this distance function.
        Specified by:
        distance in interface PrimitiveDistance<V extends FeatureVector<?>>
        Parameters:
        o1 - first DatabaseObject
        o2 - second DatabaseObject
        Returns:
        the distance between two given DatabaseObjects according to this distance function
      • 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