fourierror: Uncertainty Propagation Through Fourier Transforms
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6013e375c74268ee084a067f0efea2532b7e7cbd8f436c66731cd3bd8c8288b
|
|
| MD5 |
3d8c9c4a540286f948b3293df88797b6
|
|
| BLAKE2b-256 |
35038a6d143fea009824ed9a63533a5d9df9797fa90ec50f29c564941d24e858
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
573df74c018660fdd7f321bcddc680d2c69e4ae608adb75f22bbae758fd07c6c
|
|
| MD5 |
a09b2d5811839383618be466e812d77d
|
|
| BLAKE2b-256 |
1752c4e09591fdf7212868a55dae86370aacbe368b59d2f6876cea053fa7670d
|