MCPcopy Create free account
hub / github.com/changkun/pkg / MovingAverage

Function MovingAverage

detect/change.go:10–30  ·  view source on GitHub ↗

MovingAverage performs a moving average (MA) filter of xs with window size m. m must be a positive odd integer. Note that this is filter is often described in terms of the half length of the window (m-1)/2.

(xs []float64, m int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestMovingAverageFunction · 0.92
KolmogorovZurbenkoFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMovingAverageFunction · 0.74