
public class ClusteringVectorDumper extends Object implements ResultHandler
Class to output a clustering result in a simple and compact ascii format: whitespace separated cluster indexes
This format can be read usingClusteringVectorParser 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 String |
forceLabel
Optional label to force for this output.
|
private static Logging |
LOG
Class logger.
|
private File |
outputFile
Output file.
|
| Constructor and Description |
|---|
ClusteringVectorDumper(File outputFile,
boolean append)
Constructor.
|
ClusteringVectorDumper(File outputFile,
boolean append,
String forceLabel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dumpClusteringOutput(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 File outputFile
private String forceLabel
private boolean append
public ClusteringVectorDumper(File outputFile, boolean append, String forceLabel)
outputFile - Output fileappend - Append to output file (overwrite otherwise).forceLabel - Forced label to use for the output, may be null.public ClusteringVectorDumper(File outputFile, boolean append)
outputFile - Output fileappend - Append to output file (overwrite otherwise).public void processNewResult(ResultHierarchy hier, Result newResult)
ResultProcessorprocessNewResult in interface ResultProcessorhier - The base of the result tree.newResult - Newly added result subtree.protected void dumpClusteringOutput(PrintStream writer, ResultHierarchy hierarchy, Clustering<?> c)
writer - Output writerhierarchy - Cluster hierarchy to processc - Clustering resultCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.