SampleStats class

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

Constructors

SampleStats(List<num> sample)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
max num
Return the largest sample value.
read-only
mean num
Returns the sample mean.
read-only
median num
Returns the sample median (second quartile).
read-only
min num
Returns the smallest sample value.
read-only
quartile1 num
Returns the first quartile.
read-only
quartile3 num
Returns the third quartile.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sample List<num>
Numerical data sample. Must not be empty.
final
sortedSample Lazy<List<num>>
Sorted sample stored as lazy variable.
final
stdDev num
Returns the corrected sample standard deviation.
read-only

Methods

histogram({bool normalize = true, int intervals, ProbabilityDensity probabilityDensity}) List<List<num>>
Returns an object of type List<List<num>> containing a sample histogram.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

Static Methods

assertNotEmpty(Iterable sample) → void
Throws an exception if sample is empty.