The Kalman filter is an optimal estimation algorithm: it estimates the true state of a signal given that this signal is noisy and/or incomplete. This package provides a multidimensional implementation of:
-
Standard Kalman Filter: if the noises are drawn from a gaussian distribution and the underlying system is governed by linear equations, the filter will output the best possible estimate of the signal's true state.
-
Extended Kalman Filter: can deal with nonlinear systems, but it does not guarantee the optimal estimate. It works by linearizing the function locally using the Jacobian matrix.
Installation
Normal user
pip install kalmankit
Developer
git clone https://github.com/Xylambda/kalmankit.git
pip install -e "kalmankit/.[dev]"
Tests
To run tests you must install the library as a developer.
cd kalmankit/
pytest -v tests/
Usage
The library provides 5 examples of usage:
- Moving Average
- Market Beta estimation
- Pendulum estimation with EKF
- Standard RTS smoothing for constant-velocity tracking
- Extended RTS smoothing for a nonlinear pendulum
Install the examples extra to run the examples:
pip install -e ".[examples]"
References
-
Matlab - Understanding Kalman Filters
-
Bilgin's Blog - Kalman filter for dummies
-
Greg Welch, Gary Bishop - An Introduction to the Kalman Filter
-
Simo Särkkä - Bayesian filtering and Smoothing. Cambridge University Press.
Cite
If you've used this library for your projects please cite it:
@misc{alejandro2021kalmankit,
title={kalmankit - Multidimensional implementation of Kalman Filter algorithms},
author={Alejandro Pérez-Sanjuán},
year={2021},
howpublished={\url{https://github.com/Xylambda/kalmankit}},
}
Metadata
Release files for kalmankit 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kalmankit-2.0.0.tar.gz | 713.5 kB | With provenance | Details for kalmankit-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kalmankit-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for kalmankit-2.0.0-py3-none-any.whl |
Total release size: 733.2 kB
Release files / kalmankit-2.0.0.tar.gz
| Download URL | kalmankit-2.0.0.tar.gz |
|---|---|
| Size | 713.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90e7190f88e764447030111eb0312c2711f1df905cb6e574b4bd687e590a82c3
|
|
BLAKE2b-256 checksum How to use checksums |
5d43ddec16ee43a243242d22b5300a7239204e947892184879e50b0ee1d413d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 5, 2026.
Transparency logRelease files / kalmankit-2.0.0-py3-none-any.whl
| Download URL | kalmankit-2.0.0-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15ab1fe84b841d93b882c977cdc74090d3089cace2d048b1dd07f084a93132f6
|
|
BLAKE2b-256 checksum How to use checksums |
96ecbb2ec3107f59c4c453a8409c7acfa95599e4d34c8ae772070889fc89ca10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 5, 2026.
Transparency logSecurity for kalmankit 2.0.0
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.
Attestation for kalmankit-2.0.0.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 Jun 5, 2026.
Transparency logA 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.