This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The original version is here: https://gist.github.com/ximeg/587011a65d05f067a29ce9c22894d1d2 | |
# I made several modifications | |
# Line 14, change to range(lag, len(y)) | |
# Add "addof = 1" for np.std | |
# For avgFilter and stdFilter, change "filteredY[(i-lag):i]" to "filteredY[(i+1-lag):(i+1)]" | |
import numpy as np | |
import pylab |