Moving average smoothing and linear trend slope for a numeric time series.
Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]
- Dashboard smoothing — remove short spikes from a daily metric.
- Trend detection — quantify whether a series is rising or falling.
- Forecast preparation — produce a smoothed series for downstream modelling.
Download timeseries.exe from the Releases page, then:
Get-Content data.csv | .\timeseries.exe
# or
.\timeseries.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o timeseries.exe .{
"slope": 1,
"moving_average": [1.5, 2.5, 3.5]
}
A single ordered numeric column. Flags: -window.
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
