Skip to content

Instantly share code, notes, and snippets.

@MatthewPatton
MatthewPatton / lowpass.py
Created November 22, 2020 06:34 — forked from junzis/lowpass.py
Python Lowpass Filter
# https://stackoverflow.com/questions/25191620/
# creating-lowpass-filter-in-scipy-understanding-methods-and-units
import numpy as np
from scipy.signal import butter, lfilter, freqz
from matplotlib import pyplot as plt
def butter_lowpass(cutoff, fs, order=5):
nyq = 0.5 * fs