Skip to main content

butter

Python implementation of the digital butterworth IIR filter

Dependencies

  • numpy – used for its math modules and fast array calculations

  • numba – used to increase calculation speed

Basic Usage

Importing the Butter module:

from butterworth import Butter

Creating the Butter instance for a lowpass butterworth filter with cutoff frequency 1000Hz and rolloff frequency 48Hz for data taken with sampling frequency 44100:

filter_ = Butter(btype="Lowpass", cutoff=1000, rolloff=48, sampling=44100)

Sending sample data into filter and retrieving the filtered data:

data=[1.0, -2.0, 3.0, . . . .]
filtered_data = filter_.send(data)

Retrieving forward-backward filtered data for the accumulated data:

data1=[1.0, -2.0, 3.0, . . . .]
filtered_data = filter_.send(data1)
data2=[-1.0, 2.0, -3.0, . . . .]
more_filtered_data = filter_.send(data2)
forward_backwards_filtered_data = filter_.filtfilt()

Release files for butterworth 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for butterworth 0.0.3
File Size Uploaded
butterworth-0.0.3.tar.gz 13.0 kB Details

Release files / butterworth-0.0.3.tar.gz

Download URL butterworth-0.0.3.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
606e9e4dff546af048062b8eafc3211682b4f3614f5a1738ba67ebcff6c43326
BLAKE2b-256 checksum
How to use checksums
a821b2b973665c5585a1d9870359ca6f45cc4f67cab0f94671fd4c29f55bc72a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page