Stats<T extends num> class

Provides access to basic statistical entities of a numerical random sample.

Constructors

Stats(List<T> sample)

Properties

hashCode int
The hash code for this object.
no setterinherited
intervals int
Returns the optimal number of intervals. The interval size is estimated using the Freedman-Diaconis rule.
no setter
intervalSize double
Returns the optimal interval according to the Freedman-Diaconis rule taking into account the inter-quartile range and the sample size.
no setter
max → T
Return the largest sample value.
no setter
mean double
Returns the sample mean.
no setter
median num
Returns the sample median (second quartile).
no setter
min → T
Returns the smallest sample value.
no setter
quartile1 num
Returns the first quartile.
no setter
quartile3 num
Returns the third quartile.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sample List<T>
Numerical data sample. Must not be empty.
final
stdDev double
Returns the corrected sample standard deviation.
no setter

Methods

histogram({bool normalize = true, int intervals = 0, ProbabilityDensity? probabilityDensity}) List<List<double>>
Returns an object of type List<List<num>> containing a sample histogram.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update() → void
Requests an update of the cached variables:

Operators

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