Skip to content

Instantly share code, notes, and snippets.

@alaiacano
Created February 1, 2014 20:02
Show Gist options
  • Save alaiacano/8757895 to your computer and use it in GitHub Desktop.
Save alaiacano/8757895 to your computer and use it in GitHub Desktop.
import numpy as np
from pylab import *
import scipy.signal as signal
fs = 1 # 1 day sampling freq
filt = np.ones(7) / 7
w, resp = signal.freqz(filt)
plot(w/(2*pi*fs), abs(resp))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment