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 Examples
Hilbert Transformer
from pyhiir.hiir import hiir
from pyhiir.allpass import Hilbert
import matplotlib.pyplot as plt
import numpy as np
from scipy import signal
if __name__=='__main__':
h = hiir()
# compute filter coeficients for 40db attenuation
# and transition band of 10% of the sampling frequency
c = h.compute_coefs(40, .1)
# create a hilbert transformer with allpass chains
h = Hilbert(c)
fi, fq = h.get_transfer_function()
wi, hi = signal.freqz(fi.b, fi.a, fs=2)
wq, hq = signal.freqz(fq.b, fq.a, fs=2)
# Plot the frequency response
plt.plot(wi, (np.angle(hi)), color='r')
plt.plot(wq, (np.angle(hq)), color='g')
# plt.plot(wi, (np.angle(hi) - np.angle(hq)), color='y')
plt.ylabel('Phase [rad]', color='r')
plt.xlabel('Frequency')
plt.tick_params('y', colors='r')
plt.show()
plt.plot(wi, np.abs(hi), color='r')
plt.plot(wq, np.abs(hq), color='g')
plt.xlabel('Frequency')
plt.ylabel('Magnitude [db]')
plt.ylim(0.95, 1.05)
plt.show()
Decimator Filter:
from pyhiir.hiir import hiir
from pyhiir.allpass import LowPass
import matplotlib.pyplot as plt
import numpy as np
from scipy import signal
if __name__=='__main__':
h = hiir()
# compute filter coeficients for 120db attenuation
# and transition band of 1% of the sampling frequency
c = h.compute_coefs(120, .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.grid(True)
plt.xlabel("Normalized frequency")
plt.ylabel("Amplitude [dB]")
plt.plot(w / np.pi, 20 * np.log10(abs(h)), 'b')
plt.show()
Metadata
Release files for pyhiir 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyhiir-1.0.4.tar.gz | 27.8 kB | Without provenance | Details for pyhiir-1.0.4.tar.gz |
Built distributions (wheels)
Total release size: 846.2 kB
Release files / pyhiir-1.0.4.tar.gz
| Download URL | pyhiir-1.0.4.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8beef9d53a3f34ce0b3bab5930946272407222857bb928d06d3bd7f13886f718
|
|
BLAKE2b-256 checksum How to use checksums |
ed535b8f664f6aa5b1ee05e5300802d517c698a5385b43253474ae2aaf2f565f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp314-cp314-win_amd64.whl
| Download URL | pyhiir-1.0.4-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 35.2 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5f863336c30ace597a2a740a0991c0de4646031c76d5a69b23bed538682b6812
|
|
BLAKE2b-256 checksum How to use checksums |
f568f876722a936fd30f6657a9f9199d6fb91f4ce5f9acf98aba8b635b72af80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp314-cp314-win32.whl
| Download URL | pyhiir-1.0.4-cp314-cp314-win32.whl |
|---|---|
| Size | 35.2 kB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
d24139768223ca0c04e95536e838e0b7c8c2d641da2b94d0da2deb13afd64085
|
|
BLAKE2b-256 checksum How to use checksums |
d4dc977b75556eaeee3bce1ad48cd83b31c6333778d22c0d6b425ea2088566f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp314-cp314-musllinux_1_2_x86_64.whl
| Download URL | pyhiir-1.0.4-cp314-cp314-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 33.3 kB |
| Tags | CPython 3.14 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
12bc5b144a3e5ab5d8c9452bd4f304602f7a41f0f785d46d0ed17b81975425fa
|
|
BLAKE2b-256 checksum How to use checksums |
80fced73be5742a258ebb08945f6aab67d5c2528967b560aaddd80dd17dbf0c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | pyhiir-1.0.4-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 33.1 kB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
c82fe80ed9fd9babacadb9d3d96eec6864ef680fd4e756703e94d28a587591f0
|
|
BLAKE2b-256 checksum How to use checksums |
dbdb5718b91a0e9b2fe57cda016f573fb7d7aab48a2826d68beeafca958fb28b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp313-cp313-win_amd64.whl
| Download URL | pyhiir-1.0.4-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ae38cd26bc52289ed972bd5c738e1a1d401facaa1e9e5537fbdda9d68e0cb4a8
|
|
BLAKE2b-256 checksum How to use checksums |
6ac3327106c91afbc833ea009f81f5acb2b5a5c28e595bb1fb3c15d25bf8f153
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp313-cp313-win32.whl
| Download URL | pyhiir-1.0.4-cp313-cp313-win32.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
69ff694986f1ed6fc1a6f25d0a6e0c82ad08e95e66fde84b50ed7c7bbc132ff5
|
|
BLAKE2b-256 checksum How to use checksums |
1af64721dd6c8e38c09a8acfc84c6d2c1b44d1f3c4a27ea14a46bb72b3f77e6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | pyhiir-1.0.4-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 33.3 kB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
29881c9ffa4dd9cc96d6e2418fba9346357e27157b0bdbc3ebeb121e57bc7d39
|
|
BLAKE2b-256 checksum How to use checksums |
486b34d90510baf7fc4c916bb6439603b313a7e64d2868b230d563bb06db3ffa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | pyhiir-1.0.4-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 33.1 kB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
03b89d418589da1384024e0cb3958002fb65abf1fea375a70fba0a989ba0410b
|
|
BLAKE2b-256 checksum How to use checksums |
4c7a0a326b79a12320392631b46ef3ab605c0639472cdbb6a4bf53d773b95ab7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp312-cp312-win_amd64.whl
| Download URL | pyhiir-1.0.4-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5faa0368125d407c09dd11e5264a8b70eba69cd5c74cc31e77e0ef6aa6545107
|
|
BLAKE2b-256 checksum How to use checksums |
0d485bdaccbc243f206016a716a5bdfcf63b41f1ed2bcf6b5ff556f0287344b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp312-cp312-win32.whl
| Download URL | pyhiir-1.0.4-cp312-cp312-win32.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
8a51e788a86c03bbfa410aa56f6df168bb16e5a7b1de41f6d99af79e65557257
|
|
BLAKE2b-256 checksum How to use checksums |
0a08b9fb886042b0726c9cdd7bd9d95859b0f9e0df6e46528a7cb04953d3f7ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | pyhiir-1.0.4-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 33.3 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
69c40a5e674b3f17dd458a1af72bd6708a392901a4f34bf2dd0a05c078b26b49
|
|
BLAKE2b-256 checksum How to use checksums |
6250b4233cf7667082d79be7182a01d25e96358b7ad1f10ae0c0a5e39c24a932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | pyhiir-1.0.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 33.1 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
064a6c89d43285e7e0bdf6a2fc4a604e3472139d8288462214e891291143fb41
|
|
BLAKE2b-256 checksum How to use checksums |
c1892ba91b15a2e6b2068d140be47669f3f987d9c64db07c9ba1953707cca30b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp311-cp311-win_amd64.whl
| Download URL | pyhiir-1.0.4-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2b799a5142127e6936b127c67b4c05340c61062e97b15cdbbc49a082a54cac16
|
|
BLAKE2b-256 checksum How to use checksums |
a82183b944accdaf62831248280bb5de260a33e04f894837fef2978e8e2d7c8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp311-cp311-win32.whl
| Download URL | pyhiir-1.0.4-cp311-cp311-win32.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
97d8f8ab0078c791a94c4df3ec568ab12eb91af5c87ee56af899bfc51ea99d45
|
|
BLAKE2b-256 checksum How to use checksums |
5a0ff549ad22adcaa3dd06f5239b122e18430536a0c74180118fb1622758d097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | pyhiir-1.0.4-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 33.3 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
f5796c1b683fe0b381923200e93910d8f0f0dfccf8e372f61548375eeddcf997
|
|
BLAKE2b-256 checksum How to use checksums |
a940b2e643b233d954bfd1c13acd64fd056b27af4f8f92ebd0d431dc23d3a759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | pyhiir-1.0.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 33.1 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
80a49d4a23c0489c786233a58c328247764ac9e3635cd2fcf48626909c966afc
|
|
BLAKE2b-256 checksum How to use checksums |
adf7e31b02cfe67186f0045d955e8475cc6baa65388d734429e9f4345a67ea68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp310-cp310-win_amd64.whl
| Download URL | pyhiir-1.0.4-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5bf46388fccaeb4676791cc6e1d1c7c422ccd71ce1248dfe794fbfde2963b3ec
|
|
BLAKE2b-256 checksum How to use checksums |
9ae333b04b01259ca9b435d885a430c43bf7060af2cec513762610e5eede67ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp310-cp310-win32.whl
| Download URL | pyhiir-1.0.4-cp310-cp310-win32.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
67e1b0e982adb29aeb2e42e52246770831a64e189cdaf35bc09e763dcd83324b
|
|
BLAKE2b-256 checksum How to use checksums |
2c9f161ebb563509e0a54307143d25a6afb06aa93597c1d11a10f8f0c6f55e8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp310-cp310-musllinux_1_2_x86_64.whl
| Download URL | pyhiir-1.0.4-cp310-cp310-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 33.3 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
5ad208d014c16741b30450908df44b8892eebd53336cdf6ec054ce0e37d443ff
|
|
BLAKE2b-256 checksum How to use checksums |
8d06d5a090eba03d1fe7e877c77b3fd8ced4ae1dfe6d74e7480f385a27696225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | pyhiir-1.0.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 33.1 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
f502784fd4a513e68dba8b89eaed7d0a6671c355f639e87fdb767eb8469df2bd
|
|
BLAKE2b-256 checksum How to use checksums |
adf72acce2813ac2fe7dbe21d3bda097164921460c51fdb802000b43e7ec10da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp39-cp39-win_amd64.whl
| Download URL | pyhiir-1.0.4-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a1c7e8ee32c06e5b1e19dbaf120d87becbbf7fb433725af3d895129e8107f728
|
|
BLAKE2b-256 checksum How to use checksums |
7cc171027c5395d4a4db1942e6e1cec8f52ef4b029091cf4b82646888bd4c2b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp39-cp39-win32.whl
| Download URL | pyhiir-1.0.4-cp39-cp39-win32.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.9 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
fdbc7171068e92d96b19931955d159b26e370789c7bde96ed2984b4da6d38887
|
|
BLAKE2b-256 checksum How to use checksums |
cf35bc89e6ff0a616703ae88eb593ad02b2b6b7e1a385c5fbd33d4f62fe89be4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp39-cp39-musllinux_1_2_x86_64.whl
| Download URL | pyhiir-1.0.4-cp39-cp39-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 33.3 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
43878c63031da000387e58af8ed78fed60b3d2881476002344fbd684f8ca4b43
|
|
BLAKE2b-256 checksum How to use checksums |
1d5ae9bea6b2d2b52ee01d7eacfe699b4d98e6892bf8436255c8cec37bdf0b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyhiir-1.0.4-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | pyhiir-1.0.4-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 33.1 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
e4d700b0474237071234c03ddb5bf9cfaf3f841b98a4f2708c12d4a23e871d9c
|
|
BLAKE2b-256 checksum How to use checksums |
64d61b38c57c417d42b852399f0122581f10fd13097193a434b5ff8f5dbd983d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for pyhiir 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.