StreamStats v0.1.0 StreamStats View Source
Enables concurrent calculation of count, mean and standard deviation. New values can be aggregated into an existing stat tuple and two stat tuples can be merged into one.
Inspired by the following article by John D. Cook: https://www.johndcook.com/blog/skewness_kurtosis/
Link to this section Summary
Functions
Aggregates a number or stats tuple into a stats tuple.
Merges two stats tuples. Implemented as Chan's Parallel Algorithm.
Adds a value to the aggregated stats tuple. Implemented as Welford's Online algorithm.
Aggregates the values in a list to a stats tuple.
Calculates the standard deviation using a stats tuple.
Calculates the variance using a stats tuple.
Link to this section Types
Link to this section Functions
Aggregates a number or stats tuple into a stats tuple.
First argument can be a number or stats tuple.
Merges two stats tuples. Implemented as Chan's Parallel Algorithm.
https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm
Adds a value to the aggregated stats tuple. Implemented as Welford's Online algorithm.
https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_Online_algorithm
Aggregates the values in a list to a stats tuple.
Calculates the standard deviation using a stats tuple.
Calculates the variance using a stats tuple.