KalmanJS

JavaScript implementation and interactive playground for Kalman filters.

View the Project on GitHub kallaspriit/KalmanJS

Welcome to KalmanJS homepage.

KalmanJS was born out of trying to learn Kalman filters for my masters thesis and thought I might as well share this for anyone facing the same conundrum.

It includes pure javascript implementation of the filter and only relies on sylvester for the matrix math.

There are also a couple of examples with interactive sliders to play around with the various parameters and graphs for all the intermediate steps of the filter.

The UI relies on two of my other open-source libraries - PlotJS for drawing the graphs and jquery-slider for the sliders.

Examples

First example is the simplest possible where Kalman filter is used to guess a constant.

Kalman filter 1D example

Second example models the flight of a cannonball.

Kalman filter cannonball example