Class CacheDoubleDistanceRangeQueries<O>

  • Type Parameters:
    O - Object type

    public class CacheDoubleDistanceRangeQueries<O>
    extends AbstractApplication
    Precompute the k nearest neighbors in a disk cache.
    Since:
    0.6.0
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        The logger for this class.
      • database

        private Database database
        Data source to process.
      • distance

        private Distance<? super O> distance
        Distance function that is to be cached.
      • radius

        private double radius
        Query radius.
      • out

        private java.nio.file.Path out
        Output file.
      • RANGE_CACHE_MAGIC

        public static final int RANGE_CACHE_MAGIC
        Magic number to identify files.

        Note, when cloning this class, and performing any incompatible change to the file format, you should also change this magic ID!

        See Also:
        Constant Field Values
    • Constructor Detail

      • CacheDoubleDistanceRangeQueries

        public CacheDoubleDistanceRangeQueries​(Database database,
                                               Distance<? super O> distance,
                                               double radius,
                                               java.nio.file.Path out)
        Constructor.
        Parameters:
        database - Data source
        distance - Distance function
        radius - Query radius
        out - Matrix output file
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Main method, delegate to super class.
        Parameters:
        args - Command line arguments