Real-time digital butterworth IIR filter
Project description
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()
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
butterworth-0.0.3.tar.gz
(13.0 kB
view details)
File details
Details for the file butterworth-0.0.3.tar.gz
.
File metadata
- Download URL: butterworth-0.0.3.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606e9e4dff546af048062b8eafc3211682b4f3614f5a1738ba67ebcff6c43326 |
|
MD5 | 42df58ba9cb45b337e90bc623f77c980 |
|
BLAKE2b-256 | a821b2b973665c5585a1d9870359ca6f45cc4f67cab0f94671fd4c29f55bc72a |