public class EvaluationResult extends BasicResult implements TextWriteable, java.lang.Iterable<EvaluationResult.MeasurementGroup>
Modifier and Type | Class and Description |
---|---|
static class |
EvaluationResult.Measurement
Class representing a single measurement.
|
static class |
EvaluationResult.MeasurementGroup
A group of evaluation measurements.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList<EvaluationResult.MeasurementGroup> |
groups
Measurements.
|
(package private) java.util.ArrayList<java.lang.String> |
header
Header lines.
|
Constructor and Description |
---|
EvaluationResult(java.lang.String name,
java.lang.String shortname)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String line)
Add a header line to this result.
|
static EvaluationResult |
findOrCreate(ResultHierarchy hierarchy,
Result parent,
java.lang.String name,
java.lang.String shortname)
Find or create an evaluation result.
|
EvaluationResult.MeasurementGroup |
findOrCreateGroup(java.lang.String label)
Find or add a new measurement group.
|
java.lang.Iterable<java.lang.String> |
getHeaderLines()
Get the header lines.
|
java.util.Iterator<EvaluationResult.MeasurementGroup> |
iterator() |
EvaluationResult.MeasurementGroup |
newGroup(java.lang.String string)
Add a new measurement group.
|
int |
numLines()
Number of lines recommended for display.
|
boolean |
visualizeSingleton()
Flag to indicate that these results should be visualized using a single
visualizer.
|
void |
writeToText(TextWriterStream out,
java.lang.String label)
Write self to the given
TextWriterStream |
getLongName, getShortName
addChildResult, getHierarchy, setHierarchy
java.util.ArrayList<EvaluationResult.MeasurementGroup> groups
java.util.ArrayList<java.lang.String> header
public EvaluationResult(java.lang.String name, java.lang.String shortname)
name
- Evaluation nameshortname
- Short namepublic EvaluationResult.MeasurementGroup newGroup(java.lang.String string)
string
- Group namepublic EvaluationResult.MeasurementGroup findOrCreateGroup(java.lang.String label)
label
- Group namepublic void writeToText(TextWriterStream out, java.lang.String label)
TextWriteable
TextWriterStream
writeToText
in interface TextWriteable
out
- Output writerlabel
- Labelpublic void addHeader(java.lang.String line)
line
- Header linepublic java.lang.Iterable<java.lang.String> getHeaderLines()
public java.util.Iterator<EvaluationResult.MeasurementGroup> iterator()
iterator
in interface java.lang.Iterable<EvaluationResult.MeasurementGroup>
public int numLines()
public static EvaluationResult findOrCreate(ResultHierarchy hierarchy, Result parent, java.lang.String name, java.lang.String shortname)
hierarchy
- Result hierarchy.parent
- Parent resultname
- Long nameshortname
- Short namepublic boolean visualizeSingleton()
Copyright © 2019 ELKI Development Team. License information.