|
RLSFilter 0.0.0
C++ RLS filter
|
#include <RLSFilter.h>
Public Types | |
| using | VectorXt = Matrix<T, N, 1> |
| using | MatrixXt = Matrix<T, N, N> |
Public Member Functions | |
| template<int N1 = N, EnableIfB<(N1 > 0)> = 0> | |
| RLSFilter (T lam, T delta) | |
| template<int N1 = N, EnableIfB<(N1==-1)> = 0> | |
| RLSFilter (unsigned int n, T lam, T delta) | |
| void | update (const VectorXt &x, T y) |
| T | predict (const VectorXt &x) const noexcept |
| void | setEstimatedCoefficients (const VectorXt &w0) |
| void | setForgettingFactor (double lam) |
| void | setInitialCovarianceMatrixGain (double delta) |
| const VectorXt & | estimatedCoefficients () const noexcept |
| T | a_priori_err () const noexcept |
| const VectorXt & | gains () const noexcept |
| const MatrixXt & | P () const noexcept |
| unsigned long long | count () const noexcept |
| void | reset () noexcept |
| Reset filter to initial values. | |
Private Attributes | |
| unsigned int | n_ |
| T | lam_ |
| T | lam_inv_ |
| T | delta_ |
| VectorXt | w_ |
| MatrixXt | P_ |
| MatrixXt | P_supp_ |
| VectorXt | g_ |
| T | err_ |
| unsigned long long | count_ |
Template class implementing a Recursive Least Square (RLS) filter, managing both static and dynamic implementation.
| T | filter data values type |
| N | filter order(Static) or -1 (Dynamic) |
| using rls_filter::RLSFilter< T, N >::MatrixXt = Matrix<T, N, N> |
| using rls_filter::RLSFilter< T, N >::VectorXt = Matrix<T, N, 1> |
|
inline |
Recursive least square filter static ctor
| lam | - Forgetting factor |
| delta | - Initial gain value of matrix P |

|
inline |
Recursive least square filter dynamic ctor
| n | - Filter order |
| lam | - Forgetting factor |
| delta | - Initial gain value of matrix P |

|
inlinenoexcept |
Get a priori estimate error
|
inlinenoexcept |
Get number of performed updates
|
inlinenoexcept |
Get estimated filter coefficients
|
inlinenoexcept |
Get filter gains vector
|
inlinenoexcept |
Get filter covariance matrix
|
inlinenoexcept |
Estimate filter output
| x |

|
inlinenoexcept |
Reset filter to initial values.
|
inline |
Set filter coefficient values
| w0 | - Coefficient values |
|
inline |
Set forgetting factor value
| lam | - Forgetting factor value |

|
inline |
Set initial covariance matrix gain
| delta |

|
inline |
Update filter with new data
| x | - Input vector |
| y | - Output value |

|
private |
Count of filter updates
|
private |
Initial gain value of matrix P
|
private |
A priori error
|
private |
Filter gains
|
private |
Forgetting factor
|
private |
Inverse forgetting factor
|
private |
Filter order
|
private |
Inverse covariance error matrix
|
private |
Inverse covariance error matrix
|
private |
Filter coefficients vector