- balewski's home page
- Posts
- 2013
- 2012
- 2011
- 2010
- 2009
- December (4)
- November (1)
- October (5)
- September (6)
- August (1)
- July (1)
- June (1)
- May (2)
- April (5)
- March (5)
- February (4)
- January (6)
- 2008
- December (1)
- November (1)
- September (3)
- July (1)
- June (4)
- April (2)
- March (2)
- February (3)
- January (2)
- 2007
- October (1)
- My blog
- Post new blog entry
- All blogs
Kalman 102 : 1D tracking
I have developed some interest in Kalman tracking.
Found this writeup
http://ourworld.compuserve.com/homepages/PDJoseph/kalman.htm
written by PETER D. JOSEPH who sent me further chapters of his lectures.
I Decided to implement 1D Kalman tracking for a set of measurements y(t).
INPUT : list of single-value measurements as function of time, e.g. beam line X displacement vs. time.
INTERNAL STATE VECTOR: {x, dx/dt} and cov-matrix
OUTPUT: estimators x(t) dx/dt(t) and errors.
PARAMETERS: starting point & assumed error of measurements
Algo has been tested on data distributed with Gauss round:
float yTrue=y0+j/30;
if(j>500) yTrue=y0-j/30;
float t1=j+1; // new time
float y1=rnd.Gaus(yTrue,5); // new value
I was interested how Kalman will handle this jump in values at T=500 for two assumed sigma of the measurement (although the same sigma was used to throw the 'measurements'.
On the right plot you see residua for T=[200,480] - when measurements smoothly changed with time and Kalman was already stable.
The root code is attached at the bottom
Fig 1, assumed sigma of measurement of 10
Fig 2, assumed sigma of measurement of 30
- balewski's blog
- Login or register to post comments