ByteStats class

Statistical utilities over collections of byte-like values.

Constructors

ByteStats()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

average(Iterable<Object?> values) → double
Arithmetic mean of values treated as bytes.
histogram(Iterable<Object?> values, {required List<double> buckets}) → Histogram
Builds a histogram with the provided buckets as upper bounds. Builds a histogram of values using the provided ascending buckets as inclusive upper bounds. The final bucket is an open-ended tail.
percentile(Iterable<Object?> values, double percentile) → double
Percentile (0..100) using linear interpolation over sorted byte values.
sum(Iterable<Object?> values) → double
Sum of values treated as bytes.