Constructor and Description |
---|
StatisticsToExport() |
Modifier and Type | Method and Description |
---|---|
void |
addDouble(String name,
double value)
Adds a statistic that is a
double . |
void |
addInt(String name,
int value)
Adds a statistic that is an
int . |
void |
addMeanExtrema(String name,
double mean,
double min,
double max)
Adds three statistics a mean, min and max.
|
void |
addMeanExtrema(String name,
RunningSumExtrema runningSum)
Like
addMeanExtrema(String, double, double, double) but determines the statistics
from a RunningSumExtrema . |
void |
addString(String name,
String value)
Adds a statistic that is a
String . |
void |
append(StatisticsToExport toAppend)
Appends the names and values from another
AnnotationComparison to the existing. |
List<String> |
getNames()
The names of statistics describing the annotation-comparison, as produced by
getValues() . |
List<TypedValue> |
getValues()
The values of statistics describing the annotation-comparison, corresponding exactly to the
names in
getNames() . |
public void append(StatisticsToExport toAppend)
AnnotationComparison
to the existing.
Items are added to the end of their respective lists.
This is a mutable operation.
toAppend
- the comparison to append.public void addString(String name, String value)
String
.name
- the name of the statistic.value
- the value of the statistic.public void addDouble(String name, double value)
double
.name
- the name of the statistic.value
- the value of the statistic.public void addInt(String name, int value)
int
.name
- the name of the statistic.value
- the value of the statistic.public void addMeanExtrema(String name, double mean, double min, double max)
name
- the name of the statistic, which is capitalized and prefixed with mean
,
min
and max
respectively.mean
- the mean.min
- the min.max
- the max.public void addMeanExtrema(String name, RunningSumExtrema runningSum)
addMeanExtrema(String, double, double, double)
but determines the statistics
from a RunningSumExtrema
.name
- the name of the statistic, which is capitalized and prefixed with mean
,
min
and max
respectively.runningSum
- the running-sum, also remembering extrema.public List<String> getNames()
getValues()
.public List<TypedValue> getValues()
getNames()
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.