Package elki.application.cache
Class CacheDoubleDistanceRangeQueries<O>
- java.lang.Object
-
- elki.application.AbstractApplication
-
- elki.application.cache.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheDoubleDistanceRangeQueries.Par<O>
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private Database
database
Data source to process.private Distance<? super O>
distance
Distance function that is to be cached.private static Logging
LOG
The logger for this class.private java.nio.file.Path
out
Output file.private double
radius
Query radius.static int
RANGE_CACHE_MAGIC
Magic number to identify files.-
Fields inherited from class elki.application.AbstractApplication
REFERENCE, VERSION
-
-
Constructor Summary
Constructors Constructor Description CacheDoubleDistanceRangeQueries(Database database, Distance<? super O> distance, double radius, java.nio.file.Path out)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Main method, delegate to super class.void
run()
Runs the application.-
Methods inherited from class elki.application.AbstractApplication
printErrorMessage, runCLIApplication, usage
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
The logger for this class.
-
database
private Database database
Data source to process.
-
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
-
-
Method Detail
-
run
public void run()
Description copied from class:AbstractApplication
Runs the application.- Specified by:
run
in classAbstractApplication
-
main
public static void main(java.lang.String[] args)
Main method, delegate to super class.- Parameters:
args
- Command line arguments
-
-