You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a thought -- logging as an issue so I don't forget / can solicit feedback.
At the moment we have stat.Mean(x, weights []float64) float64 which computes the mean of a set of data. The thought is to also provide something like stat/running
and there could be similar for Variance/StdDev, DiscountedMean (where the count is discounted by a constant, etc.). These could be relatively easily combined with a shim:
This would help both with streams that are too large to want to put in a []float64 and data that comes from some source (say, a channel) and so cannot be put into a float64.
I don't think Add is the right verb, but I'm not sure what the right verb is (Accumulate seems too heavy, Append also seems wrong ...)
The text was updated successfully, but these errors were encountered:
Yes, agreed, and since it's so common we'd probably want a specific MeanVariance type (or maybe just one thing that's the kitchen sink, i.e. running.Stats). I was just trying to mention that it's easy to combine different things together so the combinatorics aren't so bad.
Just a thought -- logging as an issue so I don't forget / can solicit feedback.
At the moment we have
stat.Mean(x, weights []float64) float64
which computes the mean of a set of data. The thought is to also provide something like stat/runningand there could be similar for Variance/StdDev, DiscountedMean (where the count is discounted by a constant, etc.). These could be relatively easily combined with a shim:
This would help both with streams that are too large to want to put in a
[]float64
and data that comes from some source (say, a channel) and so cannot be put into afloat64
.I don't think
Add
is the right verb, but I'm not sure what the right verb is (Accumulate
seems too heavy,Append
also seems wrong ...)The text was updated successfully, but these errors were encountered: