Package pyvision :: Package surveillance :: Module kalman :: Class KalmanFilter
[hide private]
[frames] | no frames]

Class KalmanFilter

source code

Instance Methods [hide private]
 
__init__(self, x_0, P_0, F, Q, H, R, B=None)
Based on wikipedia.
source code
 
predict(self, u=None) source code
 
update(self, z=None, u=None) source code
 
state(self)
Return the current estimate of state.
source code
 
setState(self, x_k) source code
 
__str__(self) source code
Method Details [hide private]

__init__(self, x_0, P_0, F, Q, H, R, B=None)
(Constructor)

source code 

Based on wikipedia.

Warning: Controls have not been tested.

Parameters:
  • x_0 - initial state
  • P_0 - initial state covariance estimate
  • F - the state transistion model
  • B - control input model
  • Q - process noise covariance
  • z_k - measurement
  • H - observation model - transform state to observation
  • R - measurement noise covariance not needed
  • w - process noise
  • v_k - measurement noise

update(self, z=None, u=None)

source code 
Parameters:
  • z - measurement
  • u - control