Class RdKNNTreeFactory<O extends NumberVector>

    • Field Detail

      • K_ID

        public static final OptionID K_ID
        Parameter for k
      • DEFAULT_DISTANCE_FUNCTION

        public static final java.lang.Class<?> DEFAULT_DISTANCE_FUNCTION
        The default distance function.
      • DISTANCE_FUNCTION_ID

        public static final OptionID DISTANCE_FUNCTION_ID
        Parameter for distance function
    • Constructor Detail

      • RdKNNTreeFactory

        public RdKNNTreeFactory​(PageFileFactory<?> pageFileFactory,
                                RdkNNSettings settings)
        Constructor.
        Parameters:
        pageFileFactory - Data storage
        settings - Settings class
    • Method Detail

      • instantiate

        public RdKNNTree<O> instantiate​(Relation<O> relation)
        Description copied from interface: IndexFactory
        Sets the database in the distance function of this index (if existing).
        Parameters:
        relation - the relation to index
      • getNodeClass

        protected java.lang.Class<RdKNNNode> getNodeClass()