Documentation
¶
Overview ¶
Package stats provides small streaming statistics primitives for telemetry windows, ring-buffer reductions, and UI downsampling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Summary ¶
Summary is an immutable snapshot of a numeric window.
StdDev is the sample standard deviation. It is zero for a single-value window.
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window accumulates streaming numeric statistics with Welford's algorithm. NaN values are ignored so downstream reducers can pass sparse streams without special casing.
Click to show internal directories.
Click to hide internal directories.