Versions in this module Expand all Collapse all v2 v2.2.3 Mar 2, 2026 v2.2.2 Apr 2, 2025 Changes in this version + func Avg(w Window) float64 + func Count(w Window) float64 + func FastPercentile(perc float64) func(w Window) float64 + func Max(w Window) float64 + func Min(w Window) float64 + func Percentile(perc float64) func(w Window) float64 + func Sum(w Window) float64 + type PointPolicy struct + func NewPointPolicy(window Window) *PointPolicy + func (w *PointPolicy) Append(value float64) + func (w *PointPolicy) Reduce(f func(Window) float64) float64 + type TimePolicy struct + func NewTimePolicy(window Window, bucketDuration time.Duration) *TimePolicy + func (w *TimePolicy) Append(value float64) + func (w *TimePolicy) AppendWithTimestamp(value float64, timestamp time.Time) + func (w *TimePolicy) Reduce(f func(Window) float64) float64 + type Window [][]float64 + func NewPreallocatedWindow(buckets int, bucketSize int) Window + func NewWindow(buckets int) Window Other modules containing this package github.com/asecurityteam/rolling