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.2

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.2
File Size Uploaded
fourierror-0.0.2.tar.gz 4.4 kB Details

Built distribution (wheel)

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

Total release size: 11.5 kB

Release files / fourierror-0.0.2.tar.gz

Download URL fourierror-0.0.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e6013e375c74268ee084a067f0efea2532b7e7cbd8f436c66731cd3bd8c8288b
BLAKE2b-256 checksum
How to use checksums
35038a6d143fea009824ed9a63533a5d9df9797fa90ec50f29c564941d24e858
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL fourierror-0.0.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
573df74c018660fdd7f321bcddc680d2c69e4ae608adb75f22bbae758fd07c6c
BLAKE2b-256 checksum
How to use checksums
1752c4e09591fdf7212868a55dae86370aacbe368b59d2f6876cea053fa7670d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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