Skip to main content

Digital filter design and visualization toolkit

Project description

PyFilterLab

A simple Python toolkit for designing, visualizing, and applying digital FIR/IIR filters.

Features

  • FIR/IIR filter design
  • Signal filtering
  • Frequency response visualization
  • Time-domain signal plotting

Install

pip install pyfilterlab

Usage

from pyfilterlab import design_fir, apply_filter, plot_response, plot_signal

Ouput:-



---

📘 Use Reference

Function Description Parameters Returns
design_fir(num_taps, cutoff, fs, window='hamming') Designs a FIR low-pass filter using the window method.
  • num_taps (int): Number of filter coefficients
  • cutoff (float): Cutoff frequency in Hz
  • fs (float): Sampling frequency in Hz
  • window (str): Type of window (e.g., 'hamming', 'hann', 'blackman')
numpy.ndarray: FIR filter coefficients
design_iir(order, cutoff, fs, ftype='butter') Designs an IIR low-pass filter.
  • order (int): Filter order
  • cutoff (float): Cutoff frequency in Hz
  • fs (float): Sampling frequency in Hz
  • ftype (str): IIR type ('butter', 'cheby1', 'cheby2', 'ellip')
Tuple (b, a): Numerator and denominator coefficients
apply_filter(b, a, signal) Applies a filter to a signal using the filter coefficients.
  • b (array): Numerator coefficients
  • a (array or 1): Denominator coefficients
  • signal (array): Input signal
numpy.ndarray: Filtered signal
plot_response(b, a=1, fs=1.0, title='Frequency Response') Plots the frequency response (gain vs frequency) of the filter.
  • b, a: Filter coefficients
  • fs: Sampling frequency
  • title: Plot title
Displays a Matplotlib plot
plot_signal(signal, fs=1.0, title='Signal') Plots a time-domain signal.
  • signal: Signal data
  • fs: Sampling frequency
  • title: Plot title
Displays a Matplotlib plot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfilterlab-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfilterlab-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pyfilterlab-0.1.1.tar.gz.

File metadata

  • Download URL: pyfilterlab-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for pyfilterlab-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2a3bcefed3655d9785a1a66c48ad7625b644bfd4f403a7d00a83377c1257b161
MD5 b75f43255c1918fc492dbe4367b9493e
BLAKE2b-256 dd14035ef9141e89a815be214837555b418ba70a4e0f281689d07046040af5e7

See more details on using hashes here.

File details

Details for the file pyfilterlab-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyfilterlab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for pyfilterlab-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 768aca6119cce57f865ff19c68aac906f57fd2a8bf55a4a07c00446c0ce4da6c
MD5 ce0e216e57681d161c79aabd6f0147a9
BLAKE2b-256 714f006d18e000f7039bd724dff6c1192f8023796a43e499a62ae2ad4e380bb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page