Skip to main content

Python Numpy Scipy License: GPL-3.0 version downloads

rft1d

One-Dimensional Random Field Theory in Python.

rft1d is a Python package for exploring and validating Random Field Theory (RFT) expectations regarding upcrossings in univariate and multivariate 1D continua. These expectations can be used to make statistical inferences regarding signals observed in experimentally measured 1D continua including scalar and vector time series.

Please cite:

Pataky TC (2016) RFT1D: Smooth One-Dimensional Random Field Upcrossing Probabilities in Python. Journal of Statistical Software 71(7): 1–22. https://doi.org/10.18637/jss.v071.i07


rft1d is a component of the spm1d.org project


Documentation is available at: spm1d.org/rft1d


Find this package useful? Please press star ★ , thank you!



Installation

pip install rft1d

rft1d requires Python 3.9 or later, along with numpy, scipy and matplotlib.

rft1d has been tested on Python 3.10 through 3.14.


Running examples:

The scripts in ./examples call import rft1d so they need the package importable. Either install rft1d, or add the ./src directory to your PYTHONPATH.

The scripts in ./examples/paper reproduce the figures and code examples from the Journal of Statistical Software paper. Run ./examples/paper/all_results.py to run generate everything in one pass.


Development

The package uses a src layout, and the test suite adds ./src to sys.path itself (see tests/conftest.py), so no installation step is needed to work on the source:

git clone https://github.com/spm1d-org/rft1d.git
cd rft1d
pip install pytest numpy scipy matplotlib

Running tests:

pytest                      # the whole suite
pytest -m "not slow"        # skip the 100,000-case validation (about 20 s)
pytest tests/test_p_RF.py   # a single file

The tests are:

  • test_p_RF.py and test_uc_RF.py check rft1d's probabilities and critical thresholds against reference values computed with SPM12b, which are stored in tests/data-spm12b. These establish that rft1d's probability calculations are correct.
  • test_geom.py checks cluster labeling, resel counts and cluster metrics against hand-calculated values.
  • test_random_rng.py checks that random fields are reproducible when a seed or generator is passed as rng.

Contributing

Please see the spm1d.org contributing guidelines and AI policy.


Issues

Please report software bugs or other problems by searching existing issues or creating a new issue here.

Metadata

Release files for rft1d 0.2.11

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

Source distribution (sdist)

Source distribution for rft1d 0.2.11
File Size Uploaded Provenance Actions
rft1d-0.2.11.tar.gz 5.8 MB With provenance Details for rft1d-0.2.11.tar.gz

Built distribution (wheel)

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

Total release size: 5.9 MB

Release files / rft1d-0.2.11.tar.gz

Download URL rft1d-0.2.11.tar.gz
Size 5.8 MB
Tags Source
SHA-256 checksum
How to use checksums
21cc60e928b98a4690be80da37a845dc4b5861a99b97076ac79bbe9dde7775ad
BLAKE2b-256 checksum
How to use checksums
c21af773975689a2806c1d6bb905d8e33a94cfe0720d97f277bfd554b77b5f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / rft1d-0.2.11-py3-none-any.whl

Download URL rft1d-0.2.11-py3-none-any.whl
Size 42.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02f885553d5c5b03c9c0645fe891a5214f544c92274bec898632469e7653ca0a
BLAKE2b-256 checksum
How to use checksums
a0df269123af2147bd21bad9e0f61ad4d321290753820ac1386578b0b3e692e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for rft1d 0.2.11

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rft1d-0.2.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

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