Skip to main content

pm-remez: Parks-McClellan Remez FIR design algorithm

Crates.io Rust Rust Docs Python Python Docs License License: MIT

pm-remez is a modern Rust implementation of the Parks-McClellan Remez exchange algorithm. It can be used as a Rust library and as a Python package via its Python bindings.

pm-remez supports the design of FIR filters with even symmetry and odd symmetry, and with an even number of taps and an odd number of taps, by reducing all these cases to the even symmetry odd number of taps case. The desired frequency response in each band, as well as the weights, can be defined as arbitrary functions. The library can use double-precision IEEE 754 floating-point numbers for calculations, as well as other higher precision floating-point implementations, such as num-bigfloat. This can be used to solve numerically challenging problems that are difficult to solve using double-precision arithmetic.

The implementation draws ideas from a paper by S.I. Filip to make the algorithm robust against numerical errors. These ideas include the use of Chebyshev proxy root finding to find the extrema of the weighted error function in the Remez exchange step.

Documentation

The documentation for the Rust crate is hosted in docs.rs/pm-remez.

The documentation for the Python package is hosted in pm-remez.readthedocs.io.

The Python package documentation contains a series of examples that show how to use pm-remez to design commonly used types of FIR filters. These illustrate the capabilities of pm-remez and also serve as a filter design guide. The documentation of the Rust crate contains a few examples of the Rust API. The Python examples can also be written in Rust (and in fact this is done as part of integration testing).

Python package

The pm-remez Python package is published in PyPI. There are pre-built binary packages for common architectures and operating systems. For these, the package can be installed by doing

pip install pm-remez

Building

The pm-remez crate uses ndarray-linalg to solve eigenvalue problems. This in turn depends on LAPACK. The pm-remez crate has several feature flags that are used to select the LAPACK backend. Exactly one of these features needs to be enabled to build pm-remez. The feature flags are openblas-static, openblas-system, netlib-static, netlib-system, intel-mkl-static and intel-mkl-system. The -static versions of each flag build the LAPACK backend and link statically against it. The -system versions link against a system-installed library (linking can be dynamic or static depending on which type of library is installed). For example,

cargo build --release --features openblas-system

will build against a system-installed OpenBLAS library.

The Python package is built using maturin. It can be built with

maturin build --release

or

python -mbuild

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Metadata

Release files for pm-remez 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pm-remez 0.4.1
File Size Uploaded Provenance Actions
pm_remez-0.4.1.tar.gz 66.6 kB Without provenance Details for pm_remez-0.4.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pm-remez 0.4.1
File Actions
pm_remez-0.4.1-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for pm_remez-0.4.1-cp39-abi3-win_amd64.whl
pm_remez-0.4.1-cp39-abi3-win32.whl CPython 3.9 abi3 Windows x86-32 Details for pm_remez-0.4.1-cp39-abi3-win32.whl
pm_remez-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for pm_remez-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pm_remez-0.4.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl CPython 3.9 abi3 Linux glibc 2.17+ IBM System/390x Details for pm_remez-0.4.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
pm_remez-0.4.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl CPython 3.9 abi3 Linux glibc 2.17+ PowerPC 64-le Details for pm_remez-0.4.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
pm_remez-0.4.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl CPython 3.9 abi3 Linux glibc 2.17+ ARMv7l Details for pm_remez-0.4.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
pm_remez-0.4.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for pm_remez-0.4.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pm_remez-0.4.1-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for pm_remez-0.4.1-cp39-abi3-macosx_11_0_arm64.whl
pm_remez-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for pm_remez-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 6.3 MB

Release files / pm_remez-0.4.1.tar.gz

Download URL pm_remez-0.4.1.tar.gz
Size 66.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3481a7c7488e21830a531f3784dfc8288757cd161082ac770489545f142211c1
BLAKE2b-256 checksum
How to use checksums
39211bcf0d1e27154dea1268568b349e2242ae6ae49c1b048ca72b3a0446cede
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-win_amd64.whl

Download URL pm_remez-0.4.1-cp39-abi3-win_amd64.whl
Size 572.2 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4f242ccbc1bb2e872864711164f911152c4ade16d270c965ff7a024c4340f6ea
BLAKE2b-256 checksum
How to use checksums
ddae141b37727519e53bfb1d7f102244e362ed797b45c3f3b68bb63687723b01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-win32.whl

Download URL pm_remez-0.4.1-cp39-abi3-win32.whl
Size 562.7 kB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
db14fa26fd29d6394249f5745886c100ae4ee9d33aaebf57f43f565aec79be30
BLAKE2b-256 checksum
How to use checksums
790052a32d339f900aa0b1ab54163fd558e0916c1edcd1545bc49b57fdc7f93b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pm_remez-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 720.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
2bae7d652260f169e93465704b3f464fc15e6a699735288e36259ed0508e17e8
BLAKE2b-256 checksum
How to use checksums
1f0ef19a4d49f585480eaf63ee6eccbd8610ef0be39d4482ec3168320d78ae60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL pm_remez-0.4.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 755.7 kB
Tags CPython 3.9 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
fcdc26b4afeaad5c3a909859c31799283a865ffc7f5b5b4cd9322d1b0a172fb9
BLAKE2b-256 checksum
How to use checksums
fc0c4c19c72e04b81e17d0edd5d3037978daff0ab8e585643eab6ac1748aaefa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL pm_remez-0.4.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 855.0 kB
Tags CPython 3.9 Linux glibc 2.17+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
b516345087b2450632614e60df0eb306c800913d151e438b35fac6e80cea2197
BLAKE2b-256 checksum
How to use checksums
6afc929fc20b89606e9cf78217a931e0de879290859d0db01958634cc3a0b2e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL pm_remez-0.4.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 715.8 kB
Tags CPython 3.9 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
dad6862e28bf4002ea805f70e0d6a2b739c999e3a3d2da8013e0ecf5421c1ff0
BLAKE2b-256 checksum
How to use checksums
0909e65ae651e2da0506591312d00bc368033a52a1c88c50ccb6bbf78651d33d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pm_remez-0.4.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 713.2 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
c341c725c2e95f2933af069813e3a5b2bb34bf1bafdd95c3e9d5e3e0d9a96b59
BLAKE2b-256 checksum
How to use checksums
985cb0f9e0ed696cde4a531e2957abb2d01d563b7122832b0cb30a739ad880b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-macosx_11_0_arm64.whl

Download URL pm_remez-0.4.1-cp39-abi3-macosx_11_0_arm64.whl
Size 677.8 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cc1f4ca78f0b3d0685e759c96ee6c9f44ce38cf853036bb0eb48603729ef1ca0
BLAKE2b-256 checksum
How to use checksums
568614dc539430340a9a13ebec20f82f72698acc57e43e859db35c274670e604
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / pm_remez-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl

Download URL pm_remez-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl
Size 682.0 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b4fc9587e02520791900e48d1f50247f5a00a7c0c6c99c417f9423aa62dd9a07
BLAKE2b-256 checksum
How to use checksums
f6f16db3dbd6f5131bf40e59e2d4daf245eee8cefb9c4dbcb803b46120606cb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Security for pm-remez 0.4.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page