DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
numpy rolling average
import numpy as np def moving_average(x, w): return np.convolve(x, np.ones(w), 'valid') / w
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#numpy
#rolling
#average
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit