Skip to content

SciPy compatible design tools around Elliptic Filters with minimal Q-factors (EMQF)

Notifications You must be signed in to change notification settings

raphaelw/filter-design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filter-design

Python package

SciPy compatible design tools around Elliptic filters with minimal Q-factors (EMQF). EMQF filters are a subset of Elliptic IIR filters. They can be used for different purposes:

Getting started

Install package:

pip install "filterdesign @ git+https://github.com/raphaelw/filter-design.git"

Design and plot filter:

import matplotlib.pyplot as plt
from filterdesign import emqf
from filterdesign import filterplot

z, p, k = emqf.emqfap(N=7, stopband_attenuation=50, f3db=True)

fig, (ax1, ax2) = plt.subplots(1, 2)
filterplot.plot_analog_filter_zpk((z, p, k), ax=ax1)
filterplot.pole_zero_plot((z, p, k), unitcircle=True, ax=ax2)
plt.show()

Frequency and pole/zero plot

How to contribute

Install this library in editable mode:

pip install -e .

Or install with all optional dependencies

pip install -e .[examples,dev,build]

Run tests

python -m unittest discover --start-directory tests --pattern "test_*.py" --verbose

Use Black Code Formatter.

About

SciPy compatible design tools around Elliptic Filters with minimal Q-factors (EMQF)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages