Stats<T extends num> class
- Inheritance
-
- Object
- LightStats<
T> - Stats
- Annotations
-
- @JsonSerializable()
Constructors
- Stats(int count, num average, T min, T max, num median, num standardDeviation)
-
Stats.fromData(Iterable<
T> source) -
Note: the implementation creates a List from
source
and sorts it. For large inputs, this can be memory intensive and/or slow. Consider using LightStats for large inputs.factory -
Stats.fromJson(Map<
String, dynamic> json) -
factory
-
Stats.fromSortedList(List<
T> source) -
source
must be sorted (lowest value first) or the output will be inaccurate.factory
Properties
- average → num
-
finalinherited
- count → int
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → T
-
finalinherited
- median → num
-
final
- min → T
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- standardDeviation → num
-
final
- standardError → num
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
withPrecision(
int precision) → Stats< num> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited