public class ClusteringVectorDumper extends java.lang.Object implements ResultHandler
This format can be read using ClusteringVectorParser
for meta
analysis, or read as clustering using
ExternalClustering
.
Modifier and Type | Class and Description |
---|---|
static class |
ClusteringVectorDumper.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
append
Always append to the output file.
|
private java.lang.String |
forceLabel
Optional label to force for this output.
|
private static Logging |
LOG
Class logger.
|
private java.io.File |
outputFile
Output file.
|
Constructor and Description |
---|
ClusteringVectorDumper(java.io.File outputFile,
boolean append)
Constructor.
|
ClusteringVectorDumper(java.io.File outputFile,
boolean append,
java.lang.String forceLabel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dumpClusteringOutput(java.io.PrintStream writer,
ResultHierarchy hierarchy,
Clustering<?> c)
Dump a single clustering result.
|
void |
processNewResult(ResultHierarchy hier,
Result newResult)
Process a result.
|
private static final Logging LOG
private java.io.File outputFile
private java.lang.String forceLabel
private boolean append
public ClusteringVectorDumper(java.io.File outputFile, boolean append, java.lang.String forceLabel)
outputFile
- Output fileappend
- Append to output file (overwrite otherwise).forceLabel
- Forced label to use for the output, may be null
.public ClusteringVectorDumper(java.io.File outputFile, boolean append)
outputFile
- Output fileappend
- Append to output file (overwrite otherwise).public void processNewResult(ResultHierarchy hier, Result newResult)
ResultProcessor
processNewResult
in interface ResultProcessor
hier
- The base of the result tree.newResult
- Newly added result subtree.protected void dumpClusteringOutput(java.io.PrintStream writer, ResultHierarchy hierarchy, Clustering<?> c)
writer
- Output writerhierarchy
- Cluster hierarchy to processc
- Clustering resultCopyright © 2019 ELKI Development Team. License information.