Public Member Functions

Filter Class Reference

State space filter. More...

List of all members.

Public Member Functions

void Initialize (const ml_matrix &a, const ml_matrix &b, const ml_matrix &c, const ml_matrix &d)
 Initialize the filter with the state space matrices.
void SetState (const ml_matrix &x)
 Set the state.
ml_matrix Update (const ml_matrix &u)
 Update the filter The output y is c*x + d*u.
void Reset (void)
 Reset the filter state x to zero.

Detailed Description

A state space filter. The filter is of the form

\[ y_{k+1} = c x_k + c u_k x_{k+1} = a x_k + b u_k \]


Member Function Documentation

ml_matrix Filter::Update ( const ml_matrix &  u )

The state x = ax + b*u is stored.

Parameters:
uInput
Returns:
y Output