|
| UKF () |
| Constructor.
|
|
| ~UKF () |
| Destructor.
|
|
void | set_filter_mode (UKF_mode mode) |
| Sets the filter mode. More...
|
|
void | set_filter_parameters (const double alpha, const double kappa, const double beta) |
| Sets the filter parameters. More...
|
|
void | set_integrator_time_info (double t, double dt) |
| Sets the integrator time and time step. More...
|
|
void | set_initial_values (const ml_matrix &state0, const ml_matrix &covariance0, const ml_matrix ¶meter0=ml_matrix()) |
| Sets the initial state and covariance. More...
|
|
void | set_noise_covariances (const ml_matrix &Rp, const ml_matrix &Rm) |
| Sets the noise covariance matrices. More...
|
|
void | set_state_function (state_func state_fun) |
| Sets the state function. More...
|
|
void | set_integrator (integ_func integ_fun) |
| Sets the integrator function. More...
|
|
void | set_measurement_function (meas_func meas_fun) |
| Sets the measurement function. More...
|
|
void | set_context (void *context) |
| Sets the context pointer for data needed by the state or measurement functions. More...
|
|
void | set_state (const ml_matrix &state0) |
| Sets the current state. More...
|
|
ml_matrix | current_state (void) const |
| Returns the current estimated state.
|
|
ml_matrix | current_residual (void) const |
| Returns the current residual.
|
|
ml_matrix | current_parameter (void) const |
| Returns the current estimated parameter.
|
|
ml_matrix | current_covariance (void) const |
| Returns the current estimated covariance.
|
|
ml_matrix | current_residual_covariance (void) const |
| Returns the current residual covariance.
|
|
ml_matrix | current_rhs_params (void) const |
| Returns the current RHS parameters (only used in parameter mode).
|
|
void | update_estimate (const ml_matrix &measurement) |
| Updates the current estimate. More...
|
|
Unscented Kalman Filter class.
Implements an unscented Kalman filter (UKF). Operates in two modes: state and parameter.
To create and use a filter, do the following:
-
Construct a UKF object.
-
Set the filter mode (state or parameter).
-
Set the filter parameters.
-
Set the integrator time information (time and time step).
-
Set the initial state, covariance, and (only in parameter mode) parameters.
-
Set the noise covariance matrices (process and measurement).
-
Set the update functions (state, integrator (for state), and measurement).
-
Set the context data if needed by the state or measurement functions
-
Use the filter:
-
get the current state/parameter/covariance,
-
set the integrator current time, and
-
update the filter based on new measurements, as appropriate.
-
When finished with it, destroy the UKF object.