O
- Object typeD
- Distance typepublic class CacheFloatDistanceInOnDiskMatrix<O,D extends NumberDistance<D,?>> extends AbstractApplication
Modifier and Type | Class and Description |
---|---|
static class |
CacheFloatDistanceInOnDiskMatrix.Parameterizer<O,D extends NumberDistance<D,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static OptionID |
CACHE_ID
Parameter that specifies the name of the directory to be re-parsed.
|
private Database |
database
Holds the database connection to have the algorithm run with.
|
private static boolean |
debugExtraCheckSymmetry
Debug flag, to double-check all write operations.
|
private DistanceFunction<O,D> |
distance
Distance function that is to be cached.
|
static OptionID |
DISTANCE_ID
Parameter that specifies the name of the directory to be re-parsed.
|
private static int |
FLOAT_SIZE
Storage size: 4 bytes floats
|
private static Logging |
logger
The logger for this class.
|
private File |
out
Output file.
|
INFORMATION, INPUT_ID, OUTPUT_ID, STATIC_LOGGER
Constructor and Description |
---|
CacheFloatDistanceInOnDiskMatrix(boolean verbose,
Database database,
DistanceFunction<O,D> distance,
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.
|
isVerbose, printErrorMessage, runCLIApplication, usage
private static final Logging logger
public static final OptionID CACHE_ID
Key: -loader.diskcache
public static final OptionID DISTANCE_ID
Key: -loader.distance
private static final boolean debugExtraCheckSymmetry
private static final int FLOAT_SIZE
private Database database
private DistanceFunction<O,D extends NumberDistance<D,?>> distance
private File out
public CacheFloatDistanceInOnDiskMatrix(boolean verbose, Database database, DistanceFunction<O,D> distance, File out)
verbose
- Verbose flagdatabase
- Databasedistance
- Distance functionout
- Matrix output filepublic void run()
AbstractApplication
run
in class AbstractApplication
public static void main(String[] args)
args
- Command line arguments