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.9.tar.gz
(5.0 kB
view hashes)
Built Distributions
Close
Hashes for pyhiir-0.0.9-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313106cab9eb8c693e86c70c049376f64b02b2bacc4d62e0d193ec6eba281b7f |
|
MD5 | 21e0f162e0285c1b24db1a32c3cf2fc0 |
|
BLAKE2b-256 | 33996af2dd6668b8e8a2544cfa50110d600ca5d60a1d131538357b276c5d0c73 |
Close
Hashes for pyhiir-0.0.9-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b66bbd9100b051f931ac22428a3eba2587e0e6159092782bb392ecf35817f20 |
|
MD5 | 1c84c8bf90702eb2fa7709239f8ebd89 |
|
BLAKE2b-256 | 2c62a4e84730d21be45df7054c9edb4a6b63b1c05e941d9718adc3e5cff6b19d |
Close
Hashes for pyhiir-0.0.9-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06fe3f0e06a4c119ca06be356d886c31d548f4de4b482bde047897876ca920c5 |
|
MD5 | e4e05e86f0e9fe5f5af46c4c3b150c18 |
|
BLAKE2b-256 | 65e24336547ce28a93ce7f4e554957e2e6b4500ffa1b5fef9e91f084e69c42f9 |
Close
Hashes for pyhiir-0.0.9-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a10abbd96397d1a4269028783372e62fa231030ec95999c13c09cbc19b88ea27 |
|
MD5 | e3092ff7dcc2922f8b7e67d5ea470cda |
|
BLAKE2b-256 | 860e86fb486bb9ee7a8aacb9805f0b709b5ceb73e458229de903f7b78d19843b |
Close
Hashes for pyhiir-0.0.9-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4767c0b0dfcd93b27bb941a1226787fb39a4b06b6e0c7e34c56b6a77cc9c50cf |
|
MD5 | 574718e58f5fb495e01f00e2b36458d5 |
|
BLAKE2b-256 | 402ae1f610d723cd2437bd2cd08430dd17d81c3214b2fa406dfb2aa7fe2c6eb0 |
Close
Hashes for pyhiir-0.0.9-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 036c6f6bcc67175f8b77db0370fc9f228249b80db4cee09dfb3729b9f98e79ea |
|
MD5 | ac0f0c8b489c0c9b1d986a5439621a6b |
|
BLAKE2b-256 | 2047ac43e96c65a5e35e455100236d83e5bf8c6a52580aa3665f9069f3bf6052 |
Close
Hashes for pyhiir-0.0.9-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9004607c7f7be3e419359ca78eb452c94361280a0a5f94d3011200a7e5cd2273 |
|
MD5 | df346a51deb0964ee6d51ebcd3ef0a5b |
|
BLAKE2b-256 | 9fa9279ab0c36679e3c7157851c71d1406d36dadfcebfa9e8f4d4de9ec14665d |
Close
Hashes for pyhiir-0.0.9-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 209f8ff6ab6ec4081f7537427d2c07bb990bd552c717254897168d67012a1f60 |
|
MD5 | f159125d630a09645673277900b92f8d |
|
BLAKE2b-256 | 11383c4c79b089ffe502fb8fd1fdd54c0503367665b1ac4646efddf8865db5ed |
Close
Hashes for pyhiir-0.0.9-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db128f883d400ab956a88d50a503f90942680b29dbae5592563381583c66e77f |
|
MD5 | d4b0b11d7b211e2ba3c612a419baf62e |
|
BLAKE2b-256 | c14b6cc36b72783554f871f032b3e01f5c75dff79c81918cbe91349199b925f7 |
Close
Hashes for pyhiir-0.0.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77d9fb995a76a421f242d5ebbe841b9d610d11cdacfc573fe79f643ce54a2e6c |
|
MD5 | 6e6e004e0a6832a9ac235d7712ed10bc |
|
BLAKE2b-256 | a9e06bea87b2943b01cfc093489195339d73557192f2d1a9268707bd0ad591f6 |
Close
Hashes for pyhiir-0.0.9-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cad28d8e609cc1ca402b28bac60707be28871808b57d08cd8ec6532379ac0e4 |
|
MD5 | 9e22493d89c9fc5744eab48e2abc8416 |
|
BLAKE2b-256 | 57538a3a2996f54c71e3e703e2b528ce0db54a90e3e3772b6050b46365bcd81a |
Close
Hashes for pyhiir-0.0.9-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95f03dc6fa1c7cba3d23f7be1074fdce7c8fd63443d2c559edb5c155e5b867f5 |
|
MD5 | 0a6c1eadcc79cb96de3fa27b990f1d63 |
|
BLAKE2b-256 | 2b513076fa65fdb3a82c4d2bb294ab6e1e17eb0821731bdb4519f5d638d71515 |
Close
Hashes for pyhiir-0.0.9-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 312b06decdcc299bafdf89fe8867031fc047cde826555117c47b0878f29f8df7 |
|
MD5 | f128c78259bbee9b0be6cfaed4eb00d2 |
|
BLAKE2b-256 | 504d1292e6b506e553dcb00a420def97e20b47dd08cfc540708b9d6a014dd5cb |
Close
Hashes for pyhiir-0.0.9-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17dc10f654e0a61f965dca7eab9531ef31ca6e17556d4a545b104fdeecb47e80 |
|
MD5 | f87c0ecea8dee90c8e6f39be71694de0 |
|
BLAKE2b-256 | 0449ad96c7042c064952e31d9dfb1fba5fd6b8573ce35a696dcd02d68b7113df |
Close
Hashes for pyhiir-0.0.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11c4daf17fc969517171b3f200f8b9bff288fac31ecb16179679d2eecfd99823 |
|
MD5 | 26e3f42ede3167a8ebbb151c9f4895e8 |
|
BLAKE2b-256 | 691327d618df99918699ba104e21a6291408cce3c245d4589239189d34adcea7 |
Close
Hashes for pyhiir-0.0.9-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1709981c8a1b2ba078bc21379d8bcfceba07918996462c93448656c326d479f2 |
|
MD5 | b884e7f0e8138689488e7527b6a03ad6 |
|
BLAKE2b-256 | 614caddcc9731ac4397ecea99d5234f53abce02a018195a18312091057c11ef4 |
Close
Hashes for pyhiir-0.0.9-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29f0c778026bb78edf43765441bd12effa89f18d0a001dad5cb7b943a8965a0 |
|
MD5 | 2a55b0e060db7226bc2101f8f1a26933 |
|
BLAKE2b-256 | 4c03f85f6181689d484b38cf939df43df8817c4673d27e880469a62137d103d1 |
Close
Hashes for pyhiir-0.0.9-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e76a9b272e789aba8b22e256c1f096b547b5b2f425587f5ffb54986daee8904 |
|
MD5 | eccbe12b0e56832b1ee603291023a150 |
|
BLAKE2b-256 | 3df1c291a02e26aa6229a7d176a180535602fefa6e84eb4f2c763944683fccfa |
Close
Hashes for pyhiir-0.0.9-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e70fcfa76dde932323b58324622e598c92b27b94ba528cca79834070534c5a3a |
|
MD5 | 9ef0cd1b11f9d3f21876a39fff76a7f6 |
|
BLAKE2b-256 | cd83df3a5731d49ce9bc7ef4e94f20161aec738665492d8e3b544eb08cd9af8c |
Close
Hashes for pyhiir-0.0.9-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6bdf7249509e97b36e36f9046052b762b56c48e0ca8d96adc4811e079fa7550 |
|
MD5 | 0420afc08d642a5278ac9f29edaf9a96 |
|
BLAKE2b-256 | c1bb6e1da00a12c6d4fb05d6089adc13a9c37a70d50fffd368650942d2ab9d11 |
Close
Hashes for pyhiir-0.0.9-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37bdf0e2072b2a8d5339144512d43274d536a27391f950be342cfee5367cc1d1 |
|
MD5 | 8f490c3f06c01eddf8ff66d5d4b1c57d |
|
BLAKE2b-256 | 696f70f9c012c98fe39fb3ed0867ac861e38ed7a638ccee6ffb015001105039e |
Close
Hashes for pyhiir-0.0.9-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22780972eea2503f234032966b3400a8fa8413f3f55642dc8cb56bb08c6e0d2a |
|
MD5 | e70066d2bc8dfb1c12dcf14d13891201 |
|
BLAKE2b-256 | 39a30431550a6809ee8e3ef8f3146a1f581f78c55bd307118567b64b4d8bf6a2 |
Close
Hashes for pyhiir-0.0.9-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b24bc3e57a015840b3d13c65e0256078275cf101a4298120e3b259052f151531 |
|
MD5 | 017eafa1395108c95b6827fa603fd0c6 |
|
BLAKE2b-256 | f5105871c3e3809e202efc5ea34d819823de0968d8873294fa3f3a2016fa499f |
Close
Hashes for pyhiir-0.0.9-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d716e466a128f49a097390fc681a956181f070bfafcd905261ac8d56dd9a3f37 |
|
MD5 | 0b63e2a4421f81cdbc695c5b54253147 |
|
BLAKE2b-256 | f8c83cd5caa420ec20f5750b9d86b2ae778889b85bb22e51a0ae5f7e591a60c8 |