11 template<u
int32_t dim>
31 defaultParamsVector(Matrixf<
dim, 1>::zeros()) {
63 (transMatrix - gainVector *
sampleVector.trans() * transMatrix) / lambda;
103 void validate()
const {
105 if(!(lambda >= 0.0f || lambda <= 1.0f))
106 LOG_ERROR(
"!(lambda >= 0.0f || lambda <= 1.0f)");
109 LOG_ERROR(
"!(delta > 0)");
static constexpr Matrix eye()
Returns a _rows * columns matrix
static constexpr Matrix zeros()
Returns a _rows x _cols zero matrix
RLS()=delete
Delete the default constructor
constexpr Matrixf< dim, 1 > & getParamsVector() const
The getter function of the params vector
const Matrixf< dim, 1 > & update(Matrixf< dim, 1 > &sampleVector, float actualOutput)
Proccess a cycle of RLS update
void reset()
Reset the RLS module
constexpr RLS(float delta_, float lambda_)
The constructor
const float & getOutput() const
The getter function of the output vector
void setParamVector(const Matrixf< dim, 1 > &updatedParams)
Set the default regression parameters
asio::awaitable< T > awaitable
协程任务类型。