Skip to main content

pytempscsp : Temporal Scale Space Toolbox for Python

For performing temporal smoothing with the time-causal limit kernel and for computing discrete temporal derivative approximations by applying temporal difference operators to the smoothed data.

For examples of how to apply these functions for smoothing temporal signals to different temporal scales in a fully time-causal manner, please see the enclosed Jupyter notebook tempscspdemo.ipynb.

For more technical descriptions about the respective functions, please see the documentation strings for the respective functions in the source code in tempscsp.py.

The actual computations of the smoothed signals and the temporal derivatives is performed with computationally very efficient first-order recursive filters and small support temporal difference operators. For more explicit visualizations of the equivalent smoothing filters and temporal derivative computation filters, please see the enclosed Jupyter notebook kernelgraphs-ref.ipynb.

Time-causal temporal derivatives and bandpass wavelets

For examples of how to use extensions of this code for computing time-causal temporal derivatives at multiple scales, please see the enclosed Jupyter notebooks sineexpwave.ipynb, vibration.ipynb and cymbal44.ipynb.

For examples of how to use extensions of this code for computing bandpass wavelets based on either (i) differences-of-time-causal-limit-kernels (DoT), (ii) differences-of-Gaussians (DoG) or (iii) differences-of-exponentials (DoE), please see the enclosed Jupyter notebooks bandpass-blocks.ipynb and bandpass-riemann.ipynb.

For more technical descriptions about the respective functions, please see the documentation strings for the respective functions in the source code in tempscsel.py and bandpass.py.

Dependencies

Some parts of the code depend on the pyscsp library available at https://github.com/tonylindeberg/pyscsp.

The Jupyter notebooks for computing visualizations of bandpass wavelets depend on a function in the PyWavelets library for generating the input data.

Installation

This package is available through pip and can installed by

pip install pytempscsp

This package can also be downloaded directly from GitHub:

git clone git@github.com:tonylindeberg/pytempscsp.git

References

Lindeberg (2023) "A time-causal and time-recursive temporal scale-space representation of temporal signals and past time", Biological Cybernetics 117 (1-2): 21-59. (Open Access)

Lindeberg (2026) "Time-causal and time-recursive wavelets", Frontiers in Signal Processing, 6: 1786202:1-32. (Open Access)

Lindeberg (2016) "Time-causal and time-recursive spatio-temporal receptive fields", Journal of Mathematical Imaging and Vision 55(1): 50-88. (Open Access)

The time-causal limit kernel was first defined in Lindeberg (2016), however, then also in combination with a spatial domain, and experimentally tested on video data. The later overview paper (Lindeberg 2023) gives a dedicated treatment for a purely temporal domain, and also with relations to Koenderink's scale-time kernels and the ex-Gaussian kernel.

The extension to time-causal temporal derivatives was first performed in Lindeberg (2016), additionally considered in Lindeberg (2023) and then extended to bandpass wavelets and more general time-causal wavelets in Lindeberg (2026).

Metadata

Release files for pytempscsp 1.0.7

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

Source distribution (sdist)

Source distribution for pytempscsp 1.0.7
File Size Uploaded Provenance Actions
pytempscsp-1.0.7.tar.gz 12.3 kB Without provenance Details for pytempscsp-1.0.7.tar.gz

Built distribution (wheel)

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

Total release size: 25.4 kB

Release files / pytempscsp-1.0.7.tar.gz

Download URL pytempscsp-1.0.7.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9f3006ede3510e4cb25126b5861c92c2738ba863d5e597df7e22ee983550d2d2
BLAKE2b-256 checksum
How to use checksums
e4aecb52439295146b8f3655f47587fbbd1ab613dac97af7aad07dee194d8178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.13 Darwin/25.6.0

Release files / pytempscsp-1.0.7-py3-none-any.whl

Download URL pytempscsp-1.0.7-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df80f20c094173140d385e78a4ad4588cfc079e64268470af9fca5181bf9f79b
BLAKE2b-256 checksum
How to use checksums
5bd9fbb7ab589d348a016b129c6552e382e024c1b0b43306bbd100ae42282211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.13 Darwin/25.6.0

Security for pytempscsp 1.0.7

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