Class StatisticsToExport
Object
StatisticsToExport
Statistics to be exported, comprised of name-value pairs.
The values may be of type int
, double
or String
.
Typically, they are later written to a CSV file.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a statistic that is adouble
.void
Adds a statistic that is anint
.void
addMeanExtrema
(String name, double mean, double min, double max) Adds three statistics a mean, min and max.void
addMeanExtrema
(String name, RunningSumExtrema runningSum) LikeaddMeanExtrema(String, double, double, double)
but determines the statistics from aRunningSumExtrema
.void
Adds a statistic that is aString
.void
append
(StatisticsToExport toAppend) Appends the names and values from anotherAnnotationComparison
to the existing.getNames()
The names of statistics describing the annotation-comparison, as produced bygetValues()
.The values of statistics describing the annotation-comparison, corresponding exactly to the names ingetNames()
.
-
Constructor Details
-
StatisticsToExport
public StatisticsToExport()
-
-
Method Details
-
append
Appends the names and values from anotherAnnotationComparison
to the existing.Items are added to the end of their respective lists.
This is a mutable operation.
- Parameters:
toAppend
- the comparison to append.
-
addString
Adds a statistic that is aString
.- Parameters:
name
- the name of the statistic.value
- the value of the statistic.
-
addDouble
Adds a statistic that is adouble
.- Parameters:
name
- the name of the statistic.value
- the value of the statistic.
-
addInt
Adds a statistic that is anint
.- Parameters:
name
- the name of the statistic.value
- the value of the statistic.
-
addMeanExtrema
Adds three statistics a mean, min and max.- Parameters:
name
- the name of the statistic, which is capitalized and prefixed withmean
,min
andmax
respectively.mean
- the mean.min
- the min.max
- the max.
-
addMeanExtrema
LikeaddMeanExtrema(String, double, double, double)
but determines the statistics from aRunningSumExtrema
.- Parameters:
name
- the name of the statistic, which is capitalized and prefixed withmean
,min
andmax
respectively.runningSum
- the running-sum, also remembering extrema.
-
getNames
The names of statistics describing the annotation-comparison, as produced bygetValues()
. -
getValues
The values of statistics describing the annotation-comparison, corresponding exactly to the names ingetNames()
.
-