public static class EvaluationResult.MeasurementGroup extends java.lang.Object implements java.lang.Iterable<EvaluationResult.Measurement>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
groupname
Group name
|
private java.util.ArrayList<EvaluationResult.Measurement> |
measurements
Measurements in this group.
|
Modifier | Constructor and Description |
---|---|
protected |
MeasurementGroup(java.lang.String gname)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
EvaluationResult.MeasurementGroup |
addMeasure(java.lang.String name,
double val,
double min,
double max,
boolean lowerisbetter)
Add a single measurement.
|
EvaluationResult.MeasurementGroup |
addMeasure(java.lang.String name,
double val,
double min,
double max,
double exp,
boolean lowerisbetter)
Add a single measurement.
|
java.lang.String |
getName()
Get the group name.
|
boolean |
hasMeasure(java.lang.String name)
Check if a measurement already exists.
|
java.util.Iterator<EvaluationResult.Measurement> |
iterator() |
private java.lang.String groupname
private java.util.ArrayList<EvaluationResult.Measurement> measurements
protected MeasurementGroup(java.lang.String gname)
gname
- Group namepublic java.lang.String getName()
public EvaluationResult.MeasurementGroup addMeasure(java.lang.String name, double val, double min, double max, boolean lowerisbetter)
name
- Measurement nameval
- Observed valuemin
- Minimum valuemax
- Maximum valuelowerisbetter
- Flagthis
(Builder pattern)public EvaluationResult.MeasurementGroup addMeasure(java.lang.String name, double val, double min, double max, double exp, boolean lowerisbetter)
name
- Measurement nameval
- Observed valuemin
- Minimum valueexp
- Expected valuelowerisbetter
- Flagthis
(Builder pattern)public boolean hasMeasure(java.lang.String name)
name
- Measurement nametrue
if measurement existspublic java.util.Iterator<EvaluationResult.Measurement> iterator()
iterator
in interface java.lang.Iterable<EvaluationResult.Measurement>
Copyright © 2019 ELKI Development Team. License information.