MCPcopy Create free account
hub / github.com/aclements/go-misc / MovingAverage

Function MovingAverage

benchplot/kza.go:25–45  ·  view source on GitHub ↗

TODO: This all assumes that data is sampled at a regular interval and there are no missing values. It could be generalized to accept missing values (perhaps represented by NaN), or generalized much further by accepting (t, x) pairs and a vector of times at which to evaluate the filter (and an arbitr

(xs []float64, m int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

KolmogorovZurbenkoFunction · 0.85
TestMovingAverageFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMovingAverageFunction · 0.68