DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
numpy moving 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
#moving
#average
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit