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.6.tar.gz
(4.9 kB
view hashes)
Built Distributions
Close
Hashes for pyhiir-0.0.6-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359dd24704523ce613acef79b735a79c1fb3ae1dfdabc1603b842c157cb71d4e |
|
MD5 | 26e97cc6a1a1a549436ddc79376177f5 |
|
BLAKE2b-256 | 9cebe526c988b7ca6d0dbe123120920474a94874ee6b97cbe33e1e3087bd1652 |
Close
Hashes for pyhiir-0.0.6-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4e0b0b90f9f41ef7507de4c306f42bc5170a7dafdff8e2bd83836b55c16dd8 |
|
MD5 | 5839ea5c05ff7f5581f893fd591a30a7 |
|
BLAKE2b-256 | 579aad1800504a21a2271a5077f5f9caac00ca81d5147ead88ec7b84595ff907 |
Close
Hashes for pyhiir-0.0.6-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f22a8832f391db23846c58a00f4c0bb178dea115c847f7ccaaf0d86c65cea7 |
|
MD5 | 5b4bebbf29eceaf51e26c0cf598e1f33 |
|
BLAKE2b-256 | 50503c865042675fea7f69534149166a56828e943ffa92e7ae55ec0aacf77c7d |
Close
Hashes for pyhiir-0.0.6-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed031e06de74f9fcfe69bd085ed6129330529db2b267ece7553db8dd8801772 |
|
MD5 | d40cf86cb9ed6c636f31659d1c1b0451 |
|
BLAKE2b-256 | 432378b4b9f8cdf6065f14096feedbf48ac3ceac2b02717a02001fca9830da6d |
Close
Hashes for pyhiir-0.0.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb0b8bf1f02e98dd36bbd1e22f0ffbe883351f0a78b27b63dee519528134bb8 |
|
MD5 | 793c05957c388692eaecaae51e3b38fd |
|
BLAKE2b-256 | 60d9c76c1d5287026745554db09b77a4d890f661ac7663c9d1ee3711b593d7f5 |
Close
Hashes for pyhiir-0.0.6-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae997bd5a38b96820e08ffb61e2a3cd423733c171134534982dc574adaa3200 |
|
MD5 | 72e73b661a7eb0deab4e56eb92005196 |
|
BLAKE2b-256 | 0410842d918b9cb25cb2ce8ca4516dcd6fea3e32e3105e07b3b57788ebb9c77e |
Close
Hashes for pyhiir-0.0.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245337b610a32259d254c258ea4c5ff020368730cb31628ad60696a3daea2299 |
|
MD5 | bd97dc5d47b5ac7d99a64d3e4b6be735 |
|
BLAKE2b-256 | d9e22d9231528b8f8359e4f6701406561d58b8f4d65becee7bc1f309ca48b64a |
Close
Hashes for pyhiir-0.0.6-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd822e866218a7bad295d1f2471232eae0c90f0a3d8d0b285fae6ed608562a6d |
|
MD5 | 8950b49bc9dd11fa6c174281a8c8fbdd |
|
BLAKE2b-256 | 37c8f63caa459c26ebb5fc0ba3c07f0d40c9ac705246ea47d30bbc792a0746c2 |
Close
Hashes for pyhiir-0.0.6-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1864cf4d466810f7b47187105ce84dcf34fe6291f23f56c59ec9107c16ce236d |
|
MD5 | 421825df3f9fdce83dafa3a7fe994003 |
|
BLAKE2b-256 | 0855db25570ad8048114e588eab46cab3e3a23a6566dfc72326d4200c5e514b3 |
Close
Hashes for pyhiir-0.0.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ec3987ae30f519bcf57fee90da97d5137e40cfcc177eed0bf2fc42345b6eb3a |
|
MD5 | 02a921816c4872b0ed38083a0a7877e5 |
|
BLAKE2b-256 | b041edfd6ad707d45812a3bce9df7810bf97ddb6d16fc99d4273da0faea650a2 |
Close
Hashes for pyhiir-0.0.6-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f1d7fd7dd50e8bae4446327a03d72fa699fcb4b46811721f205de21bf8a30f |
|
MD5 | cad3e34d881f58377b58d13ce9870ea0 |
|
BLAKE2b-256 | 81ac247bd20b296b1e9971af63bb67d723b89bd7505dbc03ef594e29f370c5a7 |
Close
Hashes for pyhiir-0.0.6-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee72bbeabc78f04e4fcec3241f319ed43f15f5b8ba07b4b5f861fda7b363bf2 |
|
MD5 | f3efd47564084f9273f7459f3d40b055 |
|
BLAKE2b-256 | 7d24eecf607c837d51e96478b421fb2a5aa2cef163762749af56122ab2fa0872 |
Close
Hashes for pyhiir-0.0.6-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e88658556036db4513090b0640b8a9d175d2aef0eb2433664df0213541b9033 |
|
MD5 | ea2a6493199d358e926c1d723111111d |
|
BLAKE2b-256 | 3f3a8278ddcbdb639031ad7442666e921f477623ce2a72fc7519ebd5d74a60e8 |
Close
Hashes for pyhiir-0.0.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0482a30773fa18e46324eb9c1b3dda0c82812feba7c51fabfb75766adef128f7 |
|
MD5 | dfe3e251b40118bed77642f26d991932 |
|
BLAKE2b-256 | b57521c47ec3ae05f1f83a07bb575a048eedce43378db3e37ffc04d492053fcf |
Close
Hashes for pyhiir-0.0.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c1c5469d3b477012488e1ce90787c830cfc314b4ba711e90d2a8c19ea661bd |
|
MD5 | 59f13a219a84418950821630e039424d |
|
BLAKE2b-256 | 89c671e3efde281805e8a9c914b74369eb5f4fe2476ab608b8795c8ccbfdec8d |
Close
Hashes for pyhiir-0.0.6-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fabc32ba62d60fea3161cc625a8d98631f6067ab1db8d98a7db8e611d00255e |
|
MD5 | ec53a84d8ff5c042eea62cacf7f20a87 |
|
BLAKE2b-256 | 2053d5a12eb31adcb2a79af98edc6fc6f99aaddd4e753b164a54e2f30cfe20e2 |
Close
Hashes for pyhiir-0.0.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4917606631106dc5c4552034055396b69f37e6e609a1ca5c663229e97758185f |
|
MD5 | 84a4a2a47058773650c6a4077562b559 |
|
BLAKE2b-256 | 8618f8d89db7116a6cb72026ecf2077ad733d25ded35d0232462ea874bed130b |
Close
Hashes for pyhiir-0.0.6-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1da5538709d1b87bb53410a0a1576d54e68431b1ef77276934921e06248db28 |
|
MD5 | d45429ce9e0d8889ed01bdb4354446bd |
|
BLAKE2b-256 | 90c2e553dc28aa03f70ae036c4ac875751b3e514f754e98a1b0e0fe917512b8f |
Close
Hashes for pyhiir-0.0.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04eca11e8f5e6cab17f22888c839685b068e9269ef991ca1dc078f97790905c6 |
|
MD5 | 3b5dd67efb4300dd2a6705f05659f500 |
|
BLAKE2b-256 | 0b3e9a6deeae39582cb9b3c495999d2df87f297fcb32593eb66cf982d6717f14 |
Close
Hashes for pyhiir-0.0.6-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1881031f59b0fe69701b36d1c7ecfd810b86852803852ad56c2218380ff694 |
|
MD5 | 4a1c4d0e744c2d8b778e811e12db51a4 |
|
BLAKE2b-256 | 6c57bb76a0feb867c147ae6cdcd111b1c747af3fbc5d3d4bfd9d3cd58e1d60ce |
Close
Hashes for pyhiir-0.0.6-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eaa3c4538aa9e60132f842685524eb4051d1678058c48c6efe561c0c83d7c4b |
|
MD5 | cd52be183d9f3b1721fce35eba4cc376 |
|
BLAKE2b-256 | f6dd2e0e0bf2664502b560f107637db88a70427832404d9e562a2e7ce2f3a502 |
Close
Hashes for pyhiir-0.0.6-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9fe9ca5d91781c79f2ed3abf1652efc73e09bd3b53f43d30af5716139309f7 |
|
MD5 | b6abc7246f51ee52bd9557b968422893 |
|
BLAKE2b-256 | dbd875bfdbeda40c3552fd33956896be8d74a2bfac66089db261c2430799372f |
Close
Hashes for pyhiir-0.0.6-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8da3838e340447ea29c705812676a7d309ad57a8317c00a8235976ed28e2c9ab |
|
MD5 | 7bf8d909612ff527ec870871e5484e38 |
|
BLAKE2b-256 | 1415849e42786b74bbee2bcd9b92930601f0109e336ac075515b2fac691fe91f |
Close
Hashes for pyhiir-0.0.6-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc748b4d41a982ba89e517cf7ea401cc075c132feb32b3428c786c373bcdede |
|
MD5 | 982a5d6a7ba97a0b82a0ab0f797a9fc1 |
|
BLAKE2b-256 | bd7fd4877e615152e4cb64f98612bf711536cc76b2d48df7720d0afdc10ff62e |