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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fourierror-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fourierror-0.0.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file fourierror-0.0.2.tar.gz.

File metadata

  • Download URL: fourierror-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fourierror-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e6013e375c74268ee084a067f0efea2532b7e7cbd8f436c66731cd3bd8c8288b
MD5 3d8c9c4a540286f948b3293df88797b6
BLAKE2b-256 35038a6d143fea009824ed9a63533a5d9df9797fa90ec50f29c564941d24e858

See more details on using hashes here.

File details

Details for the file fourierror-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fourierror-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fourierror-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 573df74c018660fdd7f321bcddc680d2c69e4ae608adb75f22bbae758fd07c6c
MD5 a09b2d5811839383618be466e812d77d
BLAKE2b-256 1752c4e09591fdf7212868a55dae86370aacbe368b59d2f6876cea053fa7670d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page