Class CachedDoubleDistanceKNNPreprocessor.Factory<O>

  • Type Parameters:
    O - The object type
    All Implemented Interfaces:
    elki.index.IndexFactory<O>
    Enclosing class:
    CachedDoubleDistanceKNNPreprocessor<O>

    public static class CachedDoubleDistanceKNNPreprocessor.Factory<O>
    extends elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O>
    The parameterizable factory.
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.file.Path filename
      Filename to load.
      • Fields inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory

        distance, DISTANCE_FUNCTION_ID, k, K_ID
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(int k, elki.distance.Distance<? super O> distance, java.nio.file.Path filename)
      Index factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CachedDoubleDistanceKNNPreprocessor<O> instantiate​(elki.database.relation.Relation<O> relation)  
      • Methods inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory

        getDistance, getInputTypeRestriction
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filename

        private java.nio.file.Path filename
        Filename to load.
    • Constructor Detail

      • Factory

        public Factory​(int k,
                       elki.distance.Distance<? super O> distance,
                       java.nio.file.Path filename)
        Index factory.
        Parameters:
        k - k parameter
        distance - distance function
        filename - Cache file
    • Method Detail

      • instantiate

        public CachedDoubleDistanceKNNPreprocessor<O> instantiate​(elki.database.relation.Relation<O> relation)
        Specified by:
        instantiate in interface elki.index.IndexFactory<O>
        Specified by:
        instantiate in class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O>