Crate stats

Source

Structs§

Frequencies
A commutative data structure for exact frequency counts.
MinMax
A commutative data structure for tracking minimum and maximum values and detecting sort order in a stream of data.
OnlineStats
Online state for computing mean, variance and standard deviation.
UniqueValues
An iterator over unique values in a frequencies count.
Unsorted
A commutative data structure for lazily sorted sequences of data.

Traits§

Commute
Defines an interface for types that have an identity and can be commuted.

Functions§

antimodes
Compute the antimodes on a stream of data.
mad
Compute the median absolute deviation (MAD) on a stream of data.
mean
Compute the mean of a stream in constant space.
median
Compute the exact median on a stream of data.
merge_all
Merges all items in the stream.
mode
Compute the exact mode on a stream of data.
modes
Compute the modes on a stream of data.
quartiles
Compute the exact 1-, 2-, and 3-quartiles (Q1, Q2 a.k.a. median, and Q3) on a stream of data.
stddev
Compute the standard deviation of a stream in constant space.
variance
Compute the variance of a stream in constant space.