Package elki.distance

Class AbstractIndexBasedDistance<O,​F extends elki.index.IndexFactory<O>>

  • Type Parameters:
    O - the type of object to compute the distances in between
    F - the index factory type
    All Implemented Interfaces:
    elki.distance.Distance<O>, IndexBasedDistance<O>

    public abstract class AbstractIndexBasedDistance<O,​F extends elki.index.IndexFactory<O>>
    extends AbstractDatabaseDistance<O>
    implements IndexBasedDistance<O>
    Abstract super class for distance functions needing a database index.
    Since:
    0.1
    Author:
    Elke Achtert
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AbstractIndexBasedDistance.Instance<O,​I extends elki.index.Index,​F extends elki.distance.Distance<? super O>>
      The actual instance bound to a particular database.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected F indexFactory
      Parameter to specify the preprocessor to be used.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      elki.data.type.TypeInformation getInputTypeRestriction()  
      boolean isMetric()  
      boolean isSymmetric()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface elki.distance.Distance

        instantiate, isSquared
    • Field Detail

      • indexFactory

        protected F extends elki.index.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()
        Specified by:
        isMetric in interface elki.distance.Distance<O>
      • isSymmetric

        public boolean isSymmetric()
        Specified by:
        isSymmetric in interface elki.distance.Distance<O>
      • getInputTypeRestriction

        public final elki.data.type.TypeInformation getInputTypeRestriction()
        Specified by:
        getInputTypeRestriction in interface elki.distance.Distance<O>