Package elki.application.cache
Class CacheDoubleDistanceKNNLists<O>
- java.lang.Object
-
- elki.application.AbstractApplication
-
- elki.application.cache.CacheDoubleDistanceKNNLists<O>
-
- Type Parameters:
O
- Object type
public class CacheDoubleDistanceKNNLists<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
CacheDoubleDistanceKNNLists.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 int
k
Number of neighbors to precompute.static int
KNN_CACHE_MAGIC
Magic number to identify files.private static Logging
LOG
The logger for this class.private java.nio.file.Path
out
Output file.-
Fields inherited from class elki.application.AbstractApplication
REFERENCE, VERSION
-
-
Constructor Summary
Constructors Constructor Description CacheDoubleDistanceKNNLists(Database database, Distance<? super O> distance, int k, 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.
-
k
private int k
Number of neighbors to precompute.
-
out
private java.nio.file.Path out
Output file.
-
KNN_CACHE_MAGIC
public static final int KNN_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
-
-