Skip to main content

fourierror: Uncertainty Propagation Through Fourier Transforms

PyPI version Ask DeepWiki

Real measurements come with uncertainties. Fourier transforms of real measurements should too.

fourierror propagates uncertainty through the discrete Fourier transform, giving you variances on the real and imaginary components of the result rather than a bare complex spectrum. Two routes are available: an analytical propagation and a numerical sampling approach.

The package is built on scipp, so units and coordinates are carried through the transform — the correct "frequency" axis is derived for you from the coordinate you transform over, rather than left as bare array indices.

import fourierror

result = fourierror.analytical.dft(data, coord="time")
result["real"], result["imaginary"]   # values and variances

data is a scipp.DataArray with variances; the result is a scipp.Dataset on a frequency axis. If you're new to scipp, the getting started guide is a good first stop.

A publication describing the propagation scheme — and guidance on when to prefer the numerical or analytical method — is in preparation.

Metadata

Release files for fourierror 0.0.3

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

Source distribution (sdist)

Source distribution for fourierror 0.0.3
File Size Uploaded Provenance Actions
fourierror-0.0.3.tar.gz 22.6 kB Without provenance Details for fourierror-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fourierror 0.0.3
File Interpreter ABI Platform Actions
fourierror-0.0.3-py3-none-any.whl Python 3 none any Details for fourierror-0.0.3-py3-none-any.whl

Total release size: 52.5 kB

Release files / fourierror-0.0.3.tar.gz

Download URL fourierror-0.0.3.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
16d9c93ba8ad316840c1ef53708514fbe49807dded9079776a825387b2631746
BLAKE2b-256 checksum
How to use checksums
c68792b2fe4b058c2139f41d2c9aac5785858830f92a16102a6db24cfae1ee4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / fourierror-0.0.3-py3-none-any.whl

Download URL fourierror-0.0.3-py3-none-any.whl
Size 29.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd1aa019f171944018c526b0435ce28a320e55038ed9575e2bf245e6a4559411
BLAKE2b-256 checksum
How to use checksums
7de451fe2461b95217532979d862593fa68e85d6637606219f0ee5ebaabbad73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for fourierror 0.0.3

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