Expand description
Standard (covariance-form) Recursive Least Squares.
Two variants:
-
Rls<N, D>— Standard RLS withD-dimensional observation. Uses Cholesky decomposition of theD × Dinnovation matrixMwhenD > 1. Model:y = A xwherex ∈ ℝⁿ,y ∈ ℝᵈ,A ∈ ℝᵈˣⁿ. -
RlsParallel<N, P>—Pindependent single-output RLS instances sharing one covariance matrix. The regressora ∈ ℝⁿis a vector (scalar observation per output), so the denominator is a scalar—no Cholesky required. Model:yᵀ = a XwhereX ∈ ℝⁿˣᵖ.
Both include the numerical guards from the indiflight C reference: covariance explosion detection, order decrement limiting, and diagonal clamping.
Structs§
- Rls
- Standard RLS maintaining the covariance matrix
Pdirectly. - RlsParallel
- Parallel multi-output RLS with shared covariance.