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 |
database
Data source to process.
|
private DistanceFunction<? 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.io.File |
out
Output 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, usage
private 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()
AbstractApplication
run
in class AbstractApplication
public static void main(java.lang.String[] args)
args
- Command line argumentsCopyright © 2019 ELKI Development Team. License information.