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.484884
└─ Variance: n=1_000 | value=0.0857245
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.0757
└─ CountMap: n=100 | value=OrderedDict{Bool, Int64}(1=>52, 0=>48)