Versions in this module Expand all Collapse all v0 v0.2.4 Aug 20, 2025 v0.2.3 Feb 4, 2025 Changes in this version + type Window struct + func NewWindow(maxSize int64, duration time.Duration) *Window + func (w *Window) Add(value float64) + func (w *Window) AddAt(value float64, at time.Time) + func (w *Window) Avg() float64 + func (w *Window) Count() int64 + func (w *Window) Evict() + func (w *Window) First() float64 + func (w *Window) Last() float64 + func (w *Window) Max() float64 + func (w *Window) Mid() float64 + func (w *Window) Min() float64 + func (w *Window) Sum() float64