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.7.tar.gz
(4.9 kB
view hashes)
Built Distributions
Close
Hashes for pyhiir-0.0.7-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245078fecdced0cbe75d9f8126beac394913f92485f4c5db8dec69a986c458ed |
|
MD5 | 1e111fe193bdb6d4c931b3d86f27ab84 |
|
BLAKE2b-256 | 780c3f765183e2885e98a18f2a6dbac80cf6cbb12890cf3a836fd8a64578c080 |
Close
Hashes for pyhiir-0.0.7-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4767e4c34744ceff697e37dae37ced75f5b73090a2efd59c107112d6b8162b08 |
|
MD5 | d89b0a4130e827f4841d440b5ca87c0e |
|
BLAKE2b-256 | 1b9f633656109e351be824404babf6161bd587ccf28f49909ad85545c709dcda |
Close
Hashes for pyhiir-0.0.7-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3054d3291bb42f4b8d01061bf671f8808e37c024d798c2cc4938ee910a0e53b9 |
|
MD5 | 5df9e05c45aae0484f404a1babfcd3cb |
|
BLAKE2b-256 | 9bb3dececb03d2adecd2801ce788792513cf716b508b8ee80a201da43168bc8a |
Close
Hashes for pyhiir-0.0.7-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | beedffc62945929826f22440293d8ddcab82a87156e909e9240bfff1b7f0fd05 |
|
MD5 | 96382fa076397f52dcba7573c2f86cbd |
|
BLAKE2b-256 | be4638e0e9a9c730d7a9500056ee3f0f45c2d783c018aaadfcc45e287b11b196 |
Close
Hashes for pyhiir-0.0.7-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bba316f3f75cc8510b9563ca6467952cf7b6ebd82216119a52bf4e1f1c3b8a95 |
|
MD5 | 6dc3cfd585a2a804d1cc80614f5362ef |
|
BLAKE2b-256 | 3f8ae33a45a7d1181f4ba2994233332dfc6a71d7cb1f1743b57b1aeaac726a6e |
Close
Hashes for pyhiir-0.0.7-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbefe56a2bc457c35e8e8ca15483249ed6db846e82c077a462ef347575614a4c |
|
MD5 | 656cbaf2948c0a5d7dadf4f6b6c74f37 |
|
BLAKE2b-256 | 370e6cf02035e186209a9480cc986712df490f387e84e4c2924945c3b9879ec9 |
Close
Hashes for pyhiir-0.0.7-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85a1e0bc71066f774ccb04b0ceb90f544c15b4483e2047922f1149be854e6ad |
|
MD5 | 71385eb05e2647500982c66bc8b12e80 |
|
BLAKE2b-256 | 76096085428ef59586bf7e81d210ee31701e444f40a306cdb7e123e4d32286ed |
Close
Hashes for pyhiir-0.0.7-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c3cc872aee98bd82c6902621e2de02974160acb37d688e2e4d510fed467462 |
|
MD5 | d7807bf45962e6541111254d6d814c94 |
|
BLAKE2b-256 | fa96589f8d33603311d53782b2b069f5995d0bc483ad51a45fe96c601a9a3c5e |
Close
Hashes for pyhiir-0.0.7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725e45c52ee7042ca826c367738f0bbba71a13db352472ea3bb188082510fb1b |
|
MD5 | 56f77dba6fb5f7c95a6e77aa73b1e251 |
|
BLAKE2b-256 | 2d6bfa124242a2d068bc72488885b06efb63492c60caf2c454ea81613f8ca202 |
Close
Hashes for pyhiir-0.0.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8395a04a4d488c542b9d400bf0fef87f62c37ae6e6dae2d0a0c436398e4b0dec |
|
MD5 | 7fc8719930c12f21974460aebe2e2f22 |
|
BLAKE2b-256 | e74416bca53de266476b7a47cd48bdd3e4cf936e6ebbbc9d3f3c318cf181f2a4 |
Close
Hashes for pyhiir-0.0.7-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce63caa3ffad8ab86fcf7194fc420343fbc26f78feabf8d3dc71f8123a79dc3 |
|
MD5 | a2711ddb4275619d0187e0d663f8d480 |
|
BLAKE2b-256 | fdfee884fe775eb67c3aad864a3e1825d0d8fcfb0600433627a35d9044ff7278 |
Close
Hashes for pyhiir-0.0.7-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 798b57d778511aa402d985b3b9afab88c156d63889d90c993837ade5b9499244 |
|
MD5 | 6783eb92e44deb212e84809057a97b19 |
|
BLAKE2b-256 | 7f6abe9e63a5a642b9da7487b719b68ac27aed2a5c7e0bc5b1ad4a17368ca0c2 |
Close
Hashes for pyhiir-0.0.7-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9031e27ede32a6168c418c8edd140918a5e5ac5a04b998d67f5b5575f1a89d83 |
|
MD5 | 37f96c5ed6d89f8ffdc04fe4b2b0c0f5 |
|
BLAKE2b-256 | a0da49265e3068d45f871edcd74907824a7c7d466e809df3f03a8a1240223f48 |
Close
Hashes for pyhiir-0.0.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b6750dc406a459a4f73274afea3a9b84774213764c78f3c5b34970efd34dc5e |
|
MD5 | 01935bdbea57fd848cc7c387ace86122 |
|
BLAKE2b-256 | 60956ff0a9f1ba6b5dc8d6c42344584a822b6114eab2e7295a71e1f37c01557c |
Close
Hashes for pyhiir-0.0.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49feece1b82f609ade874e69fc9769332e415ce1375368bfcdf02c494f1945a |
|
MD5 | 0416f241c2734c6259d89360393cffc3 |
|
BLAKE2b-256 | 18525562ff637872cc16e85e05ac30423a00b3ea166c7b6edac29acf54d9d79a |
Close
Hashes for pyhiir-0.0.7-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2918643df06cd94c810b715000b071e363e8f37536d750a8a17b46d7fec8c642 |
|
MD5 | f439d84b0e830baf980aa34a2165fabd |
|
BLAKE2b-256 | 5b42c734cee15fc3ef77665b3e15ca6a60927def7a243fbd8bae1912311dc3f1 |
Close
Hashes for pyhiir-0.0.7-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9aa91c1f37311af6959f6dc85ddc4b716eb2a41afcc6e0abac514edfca79b9 |
|
MD5 | ea20daa071062f35f721531f3e795995 |
|
BLAKE2b-256 | ec8c48e3b16f2680ffbc8d1a3f6346f438edb663d19001e6d93a85aa4bb0e150 |
Close
Hashes for pyhiir-0.0.7-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b98425e3306c9b7741e571e5227f82d57a4276730d8d07256ea9423a8f68d77 |
|
MD5 | 35c45d2fb3d0fb31bc62589336ac956b |
|
BLAKE2b-256 | cb3749abba07e7df2533d5c164e6f4692af96fcadf38083c69f2bd00525ce36d |
Close
Hashes for pyhiir-0.0.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817fc3cb87ef3717fba6f3f28dcd0964975d11d7485e82d9c608faa3fc1b1251 |
|
MD5 | 8ac4c0109474d92e5693e6c445605d25 |
|
BLAKE2b-256 | 11c2eda9f006ee891513907e5e25214014381ee7b09b9f57a61746b0e9f8889b |
Close
Hashes for pyhiir-0.0.7-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45de070cc0fb86ce3bb6c930ea036eac804e0ee512d57a8610921b675fb92318 |
|
MD5 | bc6cd018be31e07b684e1d56765ef90d |
|
BLAKE2b-256 | 09a2de90932d5cae56a6e791842543aed878461664904cc9cf8ce1e3265ef1ea |
Close
Hashes for pyhiir-0.0.7-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd001df605f66377f8bec967f7a32d4f54fef7a3661af717a145ce1a7f9e625e |
|
MD5 | 3dc64bdc589383ecf56c5e8ee73a8bd7 |
|
BLAKE2b-256 | 87ff9d50701d4db1455edd028eb931526d0b95779a886556fe0494735fcae81c |
Close
Hashes for pyhiir-0.0.7-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a302522664b89f5e33e177d5b79b7dedcf79a7cc352f159546d88364cc00784 |
|
MD5 | 353f4863337d953a17ef72c656121fda |
|
BLAKE2b-256 | b0aed42d6862d932d6557e6301356eb7ff93bfd3b7b70d47171d0ce88ebbb30c |
Close
Hashes for pyhiir-0.0.7-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd228d0852ec0e385f4e1499a52b4f858bd1bb65644f710b547503f3013c11b3 |
|
MD5 | b1fd7a9663515323728ff09bfa3bfaad |
|
BLAKE2b-256 | 78769d114e84f7dde8ec9b6a64d405889ce9312d94fe86abbbec7eaf428f5ff7 |
Close
Hashes for pyhiir-0.0.7-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f555faf60eaa9895c63c30536986bc7caffdba265716aed0ae0601af4ffa21b |
|
MD5 | 33c8c23e1f2d6631b93e0698801a143f |
|
BLAKE2b-256 | d820790d7376d3b1e7677627b05360b744481e1e448df0beac6a646e3cb1c77b |