Package elki.result
Class EvaluationResult.Measurement
- java.lang.Object
-
- elki.result.EvaluationResult.Measurement
-
- Enclosing class:
- EvaluationResult
public static class EvaluationResult.Measurement extends java.lang.Object
Class representing a single measurement.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
exp
Observed value, minimum, maximum, expected value.private boolean
lowerisbetter
Indicates low values are better.(package private) double
max
Observed value, minimum, maximum, expected value.(package private) double
min
Observed value, minimum, maximum, expected value.(package private) java.lang.String
name
Measurement name.(package private) double
val
Observed value, minimum, maximum, expected value.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Measurement(java.lang.String name, double val, double min, double max, boolean lowerisbetter)
Constructor.protected
Measurement(java.lang.String name, double val, double min, double max, double exp, boolean lowerisbetter)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getExp()
Get the expected value.double
getMax()
Get the maximum value.double
getMin()
Get the minimum value.java.lang.String
getName()
Get the name of this measurement.double
getVal()
Get the observed value.boolean
lowerIsBetter()
Returntrue
if low values are better.
-
-
-
Field Detail
-
name
java.lang.String name
Measurement name.
-
val
double val
Observed value, minimum, maximum, expected value.
-
min
double min
Observed value, minimum, maximum, expected value.
-
max
double max
Observed value, minimum, maximum, expected value.
-
exp
double exp
Observed value, minimum, maximum, expected value.
-
lowerisbetter
private boolean lowerisbetter
Indicates low values are better.
-
-
Constructor Detail
-
Measurement
protected Measurement(java.lang.String name, double val, double min, double max, boolean lowerisbetter)
Constructor.- Parameters:
name
- Nameval
- Valuemin
- Minimummax
- Maximumlowerisbetter
- Flag
-
Measurement
protected Measurement(java.lang.String name, double val, double min, double max, double exp, boolean lowerisbetter)
Constructor.- Parameters:
name
- Nameval
- Valuemin
- Minimummax
- Maximumexp
- Expected valuelowerisbetter
- Flag
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of this measurement.- Returns:
- Measurement name.
-
getVal
public double getVal()
Get the observed value.- Returns:
- observed value.
-
getMin
public double getMin()
Get the minimum value.- Returns:
- Minimum value.
-
getMax
public double getMax()
Get the maximum value.- Returns:
- Maximum value.
-
getExp
public double getExp()
Get the expected value. May beDouble.NaN
.- Returns:
- Expected value.
-
lowerIsBetter
public boolean lowerIsBetter()
Returntrue
if low values are better.- Returns:
true
when low values are better.
-
-