Statistic class
Statistic information about a measurement.
Constructors
- Statistic(int n, num mean, num median, num min, num max, num stdDeviation, num medianLowerBound, num medianUpperBound, {String name = '', int precision = 2})
- Direct constructor of a Statistic instance.
-
Statistic.from(Iterable<
num> values, {String name = ''}) -
Takes
values
and creates the Statistic instance with its stats.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lowerBound → num
-
95% confidence interval lower bound of the mean.
no setter
- marginOfError → num
-
The mean's margin of error for 95% confidence.
no setter
- max → num
-
Maximum observed number.
final
- mean → num
-
Geometric mean (average).
final
- median → num
-
Median value.
final
- medianLowerBound → num
-
The lower bound of the 95% confidence interval of the population median.
final
- medianUpperBound → num
-
The upper bound of the 95% confidence interval of the population median.
final
- min → num
-
Minimum observed number.
final
- n → int
-
Sample size.
final
- name → String
-
Name or description of the measurement.
final
- precision → int
-
Number of significant fraction digits.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stdDeviation → num
-
Standard deviation.
final
- stdError → num
-
Standard error.
final
- upperBound → num
-
95% confidence interval upper bound of the mean.
no setter
Methods
-
isDifferentFrom(
Statistic other) → bool -
Returns
true
if statistic is significantly different fromother
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object> - Serialize Statistic as a Map.
-
toString(
) → String -
Output Statistic as a string.
override
-
toTSV(
) → String - Returns a tab separated value (TSV) string of name, mean, lowerBound, upperBound, marginOfError, stdDeviation, stdError, min, max, n.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited