RLS-style lattice-ladder identification ======================================= .. admonition:: Tutorial goal Compare RLS-style adaptation with NLMS on a small stable identification problem. .. note:: New to the terminology? See the :doc:`lattice DSP concept map <../../algorithms/concept_map>` and the :doc:`causality/data-use guide <../../theory/causality_and_data_use>` for how online, offline, block, and MIMO examples should be read. Context ------- RLS updates can converge faster than NLMS when the input is correlated, at the cost of more state and computation. This example keeps the denominator stable and focuses on the adaptive numerator/tap behavior. Key idea and equations ---------------------- RLS maintains an inverse covariance estimate ``P`` and uses a gain vector that depends on the current regressor and forgetting factor. How to read the result ---------------------- Compare the final errors and convergence behavior for the RLS and NLMS paths. Run command ----------- .. code-block:: bash python examples/rls_lattice_identification.py Source code ----------- .. literalinclude:: ../../../examples/rls_lattice_identification.py :language: python :linenos: