O
- Object typeD
- Distance typepublic class CacheDoubleDistanceKNNLists<O,D extends NumberDistance<D,?>> extends AbstractApplication
Modifier and Type | Class and Description |
---|---|
static class |
CacheDoubleDistanceKNNLists.Parameterizer<O,D extends NumberDistance<D,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<O,D> |
distance
Distance function that is to be cached.
|
private InputStep |
input
Data source to process.
|
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 File |
out
Output file.
|
INFORMATION
Constructor and Description |
---|
CacheDoubleDistanceKNNLists(InputStep input,
DistanceFunction<O,D> distance,
int k,
File out)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Main method, delegate to super class.
|
void |
run()
Runs the application.
|
printErrorMessage, runCLIApplication, usage
private static final Logging LOG
private InputStep input
private DistanceFunction<O,D extends NumberDistance<D,?>> distance
private int k
private File out
public static final int KNN_CACHE_MAGIC
public CacheDoubleDistanceKNNLists(InputStep input, DistanceFunction<O,D> distance, int k, File out)
input
- Data sourcedistance
- Distance functionk
- Number of nearest neighborsout
- Matrix output filepublic void run()
AbstractApplication
run
in class AbstractApplication
public static void main(String[] args)
args
- Command line arguments