项目作者: raphaelw

项目描述 :
SciPy compatible design tools for Elliptic Filters with minimal Q-factors (EMQF)
高级语言: Python
项目地址: git://github.com/raphaelw/emqf-filter-design.git
创建时间: 2021-05-02T14:02:41Z
项目社区:https://github.com/raphaelw/emqf-filter-design

开源协议:

下载


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:

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

Design and plot filter:

  1. import matplotlib.pyplot as plt
  2. from filterdesign import emqf
  3. from filterdesign import filterplot
  4. z, p, k = emqf.emqfap(N=7, stopband_attenuation=50, f3db=True)
  5. fig, (ax1, ax2) = plt.subplots(1, 2)
  6. filterplot.plot_analog_filter_zpk((z, p, k), ax=ax1)
  7. filterplot.pole_zero_plot((z, p, k), unitcircle=True, ax=ax2)
  8. plt.show()

Frequency and pole/zero plot

How to contribute

Install this library in editable mode:

  1. pip install -e .

Or install with all optional dependencies

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

Run tests

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

Use Black Code Formatter.