w2img::KalmanLinearEstimator Class Reference

List of all members.

Detailed Description

The Kalman linear estimator gives an estimate of the value assuming that the observation is of a linearly changing value (constant velocity for position observations, constant accelation for velocity observations, etc.

) i.e. the filter equations are:

        [x_(k+1) dx_(k+1)] = [1 1; 0 1] [x_k dx_k] + w_k
        z_k     = x_k + v_k
     
z_k is the observation of the "true" or "model" x_k. Update the filter with z_k's. At any time, you can get the model estimate x_k and the rate of change dx_k based on all the previous observations.

The error covariances (E(w_k^2) and E(v_k^2)) are estimated directly from the data.

Author:
Lakshman
Version:
Id
w2img_KalmanLinearEstimator.h,v 1.4 2009/06/02 20:17:57 lakshman Exp


Public Member Functions

 KalmanLinearEstimator (float x_0=0, float dx_0=0)
 Pass in your estimate of the initial value.
void init (float x_0, float dx_0=0)
bool updated () const
 Has this Kalman estimator been updated?
void update (float z_k, int MAX_HISTORY=-1)
 update the filter with an observation.
float getValue () const
 get the model value.
float getRateOfChange () const


Constructor & Destructor Documentation

w2img::KalmanLinearEstimator::KalmanLinearEstimator ( float  x_0 = 0,
float  dx_0 = 0 
)

Pass in your estimate of the initial value.

With time, the filter will place less weight on this initial condition and more on the actual observation.


Member Function Documentation

float w2img::KalmanLinearEstimator::getRateOfChange (  )  const [inline]

float w2img::KalmanLinearEstimator::getValue (  )  const [inline]

get the model value.

void w2img::KalmanLinearEstimator::init ( float  x_0,
float  dx_0 = 0 
)

void w2img::KalmanLinearEstimator::update ( float  z_k,
int  MAX_HISTORY = -1 
)

update the filter with an observation.

Specify the weight to be given to earlier time steps in computing error covariances. By default, every one of the previous values will be used; specify this if you have reason to believe that the error model is going to be changing.

bool w2img::KalmanLinearEstimator::updated (  )  const [inline]

Has this Kalman estimator been updated?


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7