Collections of Stats
There are a few special OnlineStats
that group together other OnlineStats
: Series
and Group
.
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.512444
└─ Variance: n=1_000 | value=0.0803603
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.0368618
└─ CountMap: n=100 | value=OrderedDict{Bool, Int64}(1=>49, 0=>51)