Python wrapper for HIIR library
Project description
pyhiir
use hiir (https://github.com/unevens/hiir) library in python
HIIR is a DSP (digital signal processing) library in C++ which allows:
- Changing the sampling rate of a signal by a factor of 2
- Obtaining two signals with a pi/2 phase difference (Hilbert Transform)
Pyhiir offers wrappers for the hiir methods in python.
usage example:
from pyhiir.hiir import hiir
from pyhiir.allpass import LowPass
import matplotlib.pyplot as plt
import numpy as np
from scypi import signal
if __name__=='__main__':
h = hiir()
# compute filter coeficients, order 5 and 0.01 passband ripple
c = h.compute_coefs_order_tbw(5, .01)
# create an half-band low pass filter with allpass chains
f = LowPass(c)
# Now get the filter transfer function for plotting
ff = f.get_transfer_function()
w, h = signal.freqz(ff.b, ff.a)
plt.plot(w / np.pi, 20 * np.log10(abs(h)), 'b')
plt.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyhiir-0.0.8.tar.gz
(5.0 kB
view hashes)
Built Distributions
Close
Hashes for pyhiir-0.0.8-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f9df9e76caccf9bf800a6c995e283a17223b5fc3ed7929c9210dca132f043e |
|
MD5 | 1352c406a47aca5e796e7bcb09f92914 |
|
BLAKE2b-256 | 47f027a32905e2541d88cdebd65faf726d781b5698be5da42a405fa36393870d |
Close
Hashes for pyhiir-0.0.8-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f02b7d9f5f0c7c69cdf53456b88fac5917724380e31c01be14a848f5bcb2fbd |
|
MD5 | aafe5ff1db015db3fc1158fb77fc4803 |
|
BLAKE2b-256 | 741624aed5f09fea7c42ee059f9d7f553fa6a70be1e04deafdc67613f5c2b63b |
Close
Hashes for pyhiir-0.0.8-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09e4acff7d0d0c681b9e2b01e396e0b9560d770155e6b65ae7327a1d69420789 |
|
MD5 | 6b50e1b67b9c24bcf7fc19912d1c2ea1 |
|
BLAKE2b-256 | eeb7b8086faa8381b36ad58a418ee5456d6ad2a9de7c88102d2ac83b051dc4cc |
Close
Hashes for pyhiir-0.0.8-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7a52633a45ac57414887192e97b9a6a84278d82cd653f616005f7e563b14e9 |
|
MD5 | a491e34984a0a73c6909067d50498ed4 |
|
BLAKE2b-256 | 3b36ca0a41a345ddccd67db96b971b254c20cba5c979d6adc380f2fa58f83a17 |
Close
Hashes for pyhiir-0.0.8-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e546e6e8524d1b0f66fa618105a4c588fa86c773690a502fc3ce597c8876b964 |
|
MD5 | 130956103a980aa9bf03840d4a7fca57 |
|
BLAKE2b-256 | 87c0e36cacbad9ba26373b4dfd2ac33c0d79b0dc85db8e9670e5ac6ea0f391a8 |
Close
Hashes for pyhiir-0.0.8-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7290c35e06600ef59d8d648e43aff81a93a1bef1ad5e724f154ec6e5df114a98 |
|
MD5 | 925a1340270ce7d11b6604139e6c49ca |
|
BLAKE2b-256 | 072a83c97e023a1c3af0ef47d027141a9ec913ab146868e2553cfb08e1b1889e |
Close
Hashes for pyhiir-0.0.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55eec16466866c5f833c7e87d430e6c1d0f117cb86af76f91a792c1039bd56a3 |
|
MD5 | 847b550e55ed3d3f31c0317ab7f64ef0 |
|
BLAKE2b-256 | 690dc4249b18138696b83a5226336c28d6326ee7710f9e1743593ef04b5d3cf7 |
Close
Hashes for pyhiir-0.0.8-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5be6b01b9622017597240cc647a7166158b36381b57192e2e15f6c27ccfb1fad |
|
MD5 | 09ad87a39418da7961572eecbf9eb5ff |
|
BLAKE2b-256 | 82aae97b06a21bffd705803c9ed5374b55d7e75921f80820ee3ec132b1261ec6 |
Close
Hashes for pyhiir-0.0.8-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b6406bc3a6c2130025d40686a399a88923ef2ecc24d183b6b9fdf9695ad2e8 |
|
MD5 | 4b68dd4f8851786d0041f7116d1412ef |
|
BLAKE2b-256 | ecbc5feba4aa05d325a40e81fae8481163c21f3d65829af0bd5e3e5923edf262 |
Close
Hashes for pyhiir-0.0.8-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa437117c175eea15930ab42815eb07aff33a89b16f44d85cbd31923382a257d |
|
MD5 | dd5200f5d9d8af7481d58d90306156e6 |
|
BLAKE2b-256 | 9d7060310812dec906d5fe8b9267ae9271646aaf6eeb2076136f75b566fc990f |
Close
Hashes for pyhiir-0.0.8-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f3290f1d2a5db35a5c201f6d2b1356f6dffc95b4bf244df4b23ac416f0105d |
|
MD5 | c20bed46ec6e4b17f8e628a82edb0a35 |
|
BLAKE2b-256 | 14781416a96612510561276ddacdac9730fa5663bf9ca89d11d9bf66b7af290f |
Close
Hashes for pyhiir-0.0.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 373fd2921eca755b1653984e9d41978b7a1c0e3efdf23c02128d21f9de667eba |
|
MD5 | 0f1411a4bfc950af265e2a3668361da3 |
|
BLAKE2b-256 | 92a9207f30b681c5ccf700a41ed50dd158d50190bcdb597a2c8d5cd2b99f347a |
Close
Hashes for pyhiir-0.0.8-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c2d33868e121c93545c049f3323d60b5581ee6389ef36ff2e716edb9968afd4 |
|
MD5 | 4052a4c6f34a1df2ae538bc8c2a92717 |
|
BLAKE2b-256 | c37f5cb680e1fb1e78a44151b8d0253ef867644b393ce6fe4479f54b0c5f77c7 |
Close
Hashes for pyhiir-0.0.8-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e0e59b3acfba2fdb1f20444dc5b8e0bd346d63354698f18886a641caaaa079 |
|
MD5 | 06037aa5174c218816f423cbb5515372 |
|
BLAKE2b-256 | e09d5a73a11d3ebe44edeedd3d0deb27d31fca32d968f5178e64560b065f1fc0 |
Close
Hashes for pyhiir-0.0.8-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88516913b15255004bde16000bd67eaff7aa08355b3ed7f149b0bff600a3545f |
|
MD5 | 23c45ad4d1426a1f6e7b6cf7513293ac |
|
BLAKE2b-256 | b110245e47d064cd52aab2df09a2d286b66ce2900729c677d948afc4ee921f1a |
Close
Hashes for pyhiir-0.0.8-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cfccef94834b039fbddf7e8b830f5300a52efeb5316b00a7136762faf6a2a20 |
|
MD5 | d233d7c0defc0c64e85104ed29f984d4 |
|
BLAKE2b-256 | 2aa48cf2d05971af4f013710cdba98ad63f7eb30588e8139c5d438eb91849c11 |
Close
Hashes for pyhiir-0.0.8-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8acb47120314b2ea8ca09e4674783af76509f78020ce22f726a59deb7f94bd78 |
|
MD5 | cc12348811ced53aeb877432b88a8b44 |
|
BLAKE2b-256 | c00774498331a9dc8b67fb0187eb1588ac70f612494c849130e88dd8fe87a7b4 |
Close
Hashes for pyhiir-0.0.8-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e011517e6fdb47d70055dd055c5e039de82364a550d6c0820eb35a239407a70 |
|
MD5 | e2c11c7be34845c5e2105d423ca8a0d2 |
|
BLAKE2b-256 | 0f4a5016bca9a116a7d49eeacf0f608649480d3098c56a975de5a6503e2fd64e |
Close
Hashes for pyhiir-0.0.8-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 326213d770b7cc9937b996ff3843819ae2afccd85c607f9ef24141c7efe58482 |
|
MD5 | 7234ae123a05dc9a54a58661a3bcd5ee |
|
BLAKE2b-256 | a0a9aa9fa6b2ed04cd47e5e202b74add13402e200f800d3246dc175edebf6307 |
Close
Hashes for pyhiir-0.0.8-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44043dc5b13ab293c399624f4ba51ef54aa3e423e00016b8f241d0aa0a7460ce |
|
MD5 | 0af677d918dc5dff27f763505a71e712 |
|
BLAKE2b-256 | 3d767fb2318cb7e9aa2756dce356a9640b854510ff3f0128fb7ae59fdc084560 |
Close
Hashes for pyhiir-0.0.8-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a551cf9953ce88833b43b967bfcf434055cf9552f9c76f3372ee423b1cecbda |
|
MD5 | 056fc126165423fb4a8751041621d1fa |
|
BLAKE2b-256 | 365bb2d0bff2f899acdfa89062151dd013c36677683379021a71cbfdaaed1a23 |
Close
Hashes for pyhiir-0.0.8-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fd4f25a0bd522389925390f8e8701a6a88f8ee3acbc4ca54d8b884fbf274768 |
|
MD5 | ba584db9ab185f722bf7a8793fd1ef34 |
|
BLAKE2b-256 | 627050ae1d586277dc27c822ee2496de8fda2a37c2e81ca6373d83ae2cf4b357 |
Close
Hashes for pyhiir-0.0.8-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55dc80ba4760024d867a8b22a6f49affaf09d77299681773043256ebb161f30 |
|
MD5 | 51a99dafe206f2590a024883a4f6713a |
|
BLAKE2b-256 | cc352151aa39adef7a71a6d29eafdd3020ea868af0519723e6c00a15894106d8 |
Close
Hashes for pyhiir-0.0.8-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5abf4a2d67b557f42e989094a1a7ff16f8b1416b01ef3d3b8680f74c675223a9 |
|
MD5 | 2a37df834edbc0e24bb87bc065a6c2f9 |
|
BLAKE2b-256 | 6f99c86ed7c56e62135b5e25af3917d4ca7235831ca0e3321f2e7457a660e5a7 |