Class AbstractMaterializeKNNPreprocessor.Factory<O>

    • Field Detail

      • K_ID

        public static final OptionID K_ID
        Parameter to specify the number of nearest neighbors of an object to be materialized. must be an integer greater than 1.

        public static final OptionID DISTANCE_FUNCTION_ID
        Parameter to indicate the distance function to be used to ascertain the nearest neighbors.
      • k

        protected int k
        Holds the value of K_ID.
      • distance

        protected Distance<? super O> distance
        Hold the distance function to be used.
    • Constructor Detail

      • Factory

        public Factory​(int k,
                       Distance<? super O> distance)
        Index factory.
        k - k parameter
        distance - distance function