Package elki.logging.statistics
Class StringStatistic
- java.lang.Object
-
- elki.logging.statistics.AbstractStatistic
-
- elki.logging.statistics.StringStatistic
-
- All Implemented Interfaces:
Statistic
public class StringStatistic extends AbstractStatistic
Trivial string based statistic.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
val
Storage-
Fields inherited from class elki.logging.statistics.AbstractStatistic
key
-
-
Constructor Summary
Constructors Constructor Description StringStatistic(java.lang.String key)
Constructor.StringStatistic(java.lang.String key, java.lang.String val)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatValue()
Get a formatted version of the value, for output.void
setString(java.lang.String val)
Set the value.-
Methods inherited from class elki.logging.statistics.AbstractStatistic
getKey, toString
-
-
-
-
Method Detail
-
setString
public void setString(java.lang.String val)
Set the value.- Parameters:
val
- Value
-
formatValue
public java.lang.String formatValue()
Description copied from interface:Statistic
Get a formatted version of the value, for output.- Returns:
- Value
-
-