public class EvaluationResult extends BasicResult implements TextWriteable, 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) ArrayList<EvaluationResult.MeasurementGroup> |
groups
Measurements.
|
(package private) ArrayList<String> |
header
Header lines.
|
Constructor and Description |
---|
EvaluationResult(String name,
String shortname)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String line)
Add a header line to this result.
|
static EvaluationResult |
findOrCreate(ResultHierarchy hierarchy,
Result parent,
String name,
String shortname)
Find or create an evaluation result.
|
EvaluationResult.MeasurementGroup |
findOrCreateGroup(String label)
Find or add a new measurement group.
|
Iterable<String> |
getHeaderLines()
Get the header lines.
|
Iterator<EvaluationResult.MeasurementGroup> |
iterator() |
EvaluationResult.MeasurementGroup |
newGroup(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,
String label)
Write self to the given
TextWriterStream |
getLongName, getShortName
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
ArrayList<EvaluationResult.MeasurementGroup> groups
public EvaluationResult.MeasurementGroup newGroup(String string)
string
- Group namepublic EvaluationResult.MeasurementGroup findOrCreateGroup(String label)
label
- Group namepublic void writeToText(TextWriterStream out, String label)
TextWriteable
TextWriterStream
writeToText
in interface TextWriteable
out
- Output writerlabel
- Labelpublic void addHeader(String line)
line
- Header linepublic Iterator<EvaluationResult.MeasurementGroup> iterator()
iterator
in interface Iterable<EvaluationResult.MeasurementGroup>
public int numLines()
public static EvaluationResult findOrCreate(ResultHierarchy hierarchy, Result parent, String name, String shortname)
hierarchy
- Result hierarchy.parent
- Parent resultname
- Long nameshortname
- Short namepublic boolean visualizeSingleton()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.