O
- Object typepublic class PrecomputeDistancesAsciiApplication<O> extends AbstractApplication
Modifier and Type | Class and Description |
---|---|
static class |
PrecomputeDistancesAsciiApplication.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private Database |
database
Data source to process.
|
private boolean |
debugExtraCheckSymmetry
Debug flag, to double-check all write operations.
|
private DistanceFunction<? super O> |
distance
Distance function that is to be cached.
|
static java.lang.String |
GZIP_POSTFIX
Gzip file name postfix.
|
private static Logging |
LOG
The logger for this class.
|
private java.io.File |
out
Output file.
|
REFERENCE, VERSION
Constructor and Description |
---|
PrecomputeDistancesAsciiApplication(Database database,
DistanceFunction<? super O> distance,
java.io.File out)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main method, delegate to super class.
|
private static java.io.PrintStream |
openStream(java.io.File out)
Open the output stream, using gzip if necessary.
|
void |
run()
Runs the application.
|
printErrorMessage, runCLIApplication, usage
private static final Logging LOG
public static final java.lang.String GZIP_POSTFIX
private boolean debugExtraCheckSymmetry
private Database database
private DistanceFunction<? super O> distance
private java.io.File out
public PrecomputeDistancesAsciiApplication(Database database, DistanceFunction<? super O> distance, java.io.File out)
database
- Data sourcedistance
- Distance functionout
- Matrix output filepublic void run()
AbstractApplication
run
in class AbstractApplication
private static java.io.PrintStream openStream(java.io.File out) throws java.io.IOException
out
- Output file name.java.io.IOException
public static void main(java.lang.String[] args)
args
- Command line argumentsCopyright © 2019 ELKI Development Team. License information.