Package elki.distance

Class AbstractIndexBasedDistance<O,​F extends IndexFactory<O>>

    • Field Detail

      • indexFactory

        protected F extends IndexFactory<O> indexFactory
        Parameter to specify the preprocessor to be used.
    • Constructor Detail

      • AbstractIndexBasedDistance

        public AbstractIndexBasedDistance​(F indexFactory)
        Constructor.
        Parameters:
        indexFactory - Index factory
    • Method Detail

      • isMetric

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

        public boolean isSymmetric()
        Description copied from interface: Distance
        Is this function symmetric?
        Specified by:
        isSymmetric in interface Distance<O>
        Returns:
        true when symmetric