O - Object typepublic class CacheDoubleDistanceKNNLists<O> extends AbstractApplication
| Modifier and Type | Class and Description | 
|---|---|
| static class  | CacheDoubleDistanceKNNLists.Parameterizer<O>Parameterization class. | 
| Modifier and Type | Field and Description | 
|---|---|
| private Database | databaseData source to process. | 
| private DistanceFunction<? super O> | distanceDistance function that is to be cached. | 
| private int | kNumber of neighbors to precompute. | 
| static int | KNN_CACHE_MAGICMagic number to identify files. | 
| private static Logging | LOGThe logger for this class. | 
| private java.io.File | outOutput file. | 
REFERENCE, VERSION| Constructor and Description | 
|---|
| CacheDoubleDistanceKNNLists(Database database,
                           DistanceFunction<? super O> distance,
                           int k,
                           java.io.File out)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | main(java.lang.String[] args)Main method, delegate to super class. | 
| void | run()Runs the application. | 
printErrorMessage, runCLIApplication, usageprivate static final Logging LOG
private Database database
private DistanceFunction<? super O> distance
private int k
private java.io.File out
public static final int KNN_CACHE_MAGIC
public CacheDoubleDistanceKNNLists(Database database, DistanceFunction<? super O> distance, int k, java.io.File out)
database - Data sourcedistance - Distance functionk - Number of nearest neighborsout - Matrix output filepublic void run()
AbstractApplicationrun in class AbstractApplicationpublic static void main(java.lang.String[] args)
args - Command line argumentsCopyright © 2019 ELKI Development Team. License information.