de.lmu.ifi.dbs.elki.application.cache
Class CacheFloatDistanceInOnDiskMatrix<O,D extends NumberDistance<D,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.application.AbstractApplication
      extended by de.lmu.ifi.dbs.elki.application.cache.CacheFloatDistanceInOnDiskMatrix<O,D>
Type Parameters:
O - Object type
D - Distance type
All Implemented Interfaces:
InspectionUtilFrequentlyScanned, Parameterizable

public class CacheFloatDistanceInOnDiskMatrix<O,D extends NumberDistance<D,?>>
extends AbstractApplication

Wrapper to convert a traditional text-serialized result into a on-disk matrix for random access.


Nested Class Summary
static class CacheFloatDistanceInOnDiskMatrix.Parameterizer<O,D extends NumberDistance<D,?>>
          Parameterization class.
 
Field Summary
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.
 
Fields inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
INFORMATION, INPUT_ID, OUTPUT_ID, STATIC_LOGGER
 
Constructor Summary
CacheFloatDistanceInOnDiskMatrix(boolean verbose, Database database, DistanceFunction<O,D> distance, File out)
          Constructor.
 
Method Summary
static void main(String[] args)
          Main method, delegate to super class.
 void run()
          Runs the application.
 
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
isVerbose, printErrorMessage, runCLIApplication, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logging logger
The logger for this class.


CACHE_ID

public static final OptionID CACHE_ID
Parameter that specifies the name of the directory to be re-parsed.

Key: -loader.diskcache


DISTANCE_ID

public static final OptionID DISTANCE_ID
Parameter that specifies the name of the directory to be re-parsed.

Key: -loader.distance


debugExtraCheckSymmetry

private static final boolean debugExtraCheckSymmetry
Debug flag, to double-check all write operations.

See Also:
Constant Field Values

FLOAT_SIZE

private static final int FLOAT_SIZE
Storage size: 4 bytes floats

See Also:
Constant Field Values

database

private Database database
Holds the database connection to have the algorithm run with.


distance

private DistanceFunction<O,D extends NumberDistance<D,?>> distance
Distance function that is to be cached.


out

private File out
Output file.

Constructor Detail

CacheFloatDistanceInOnDiskMatrix

public CacheFloatDistanceInOnDiskMatrix(boolean verbose,
                                        Database database,
                                        DistanceFunction<O,D> distance,
                                        File out)
Constructor.

Parameters:
verbose - Verbose flag
database - Database
distance - Distance function
out - Matrix output file
Method Detail

run

public void run()
Description copied from class: AbstractApplication
Runs the application.

Specified by:
run in class AbstractApplication

main

public static void main(String[] args)
Main method, delegate to super class.

Parameters:
args - Command line arguments

Release 0.4.0 (2011-09-20_1324)