Collections of Stats
There are a few special OnlineStats
that group together other OnlineStats
: Series
and Group
.
![](https://user-images.githubusercontent.com/8075494/57342826-bf088c00-710e-11e9-9ac0-f3c1e5aa7a7d.png)
Series
A Series
tracks stats that should be applied to the same data stream.
y = rand(1000)
s = Series(Mean(), Variance())
fit!(s, y)
Series
├─ Mean: n=1_000 | value=0.509901
└─ Variance: n=1_000 | value=0.0797189
Group
A Group
tracks stats that should be applied to different data streams.
g = Group(Mean(), CountMap(Bool))
itr = zip(randn(100), rand(Bool, 100))
fit!(g, itr)
Group
├─ Mean: n=100 | value=-0.00301231
└─ CountMap: n=100 | value=OrderedDict{Bool, Int64}(1=>60, 0=>40)