Exact rational-tail validation for finite Nehari candidates =========================================================== .. admonition:: Tutorial goal Validate the finite Nehari/rational workflow on a known rank-3 exponential tail. .. 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 ------- The finite workflow is validated here on a controlled exact case. This tutorial constructs an anticausal tail as a known sum of three stable exponentials. Such a sequence has finite Hankel rank three, so ranks one and two should fail the tolerance criteria while rank three should recover the tail and poles to near numerical precision. This page is a regression-style validation tutorial, not an optimality claim. It checks that the package-level candidate-selection workflow behaves correctly on a case where the effective rational order is known in advance. Key idea and equations ---------------------- The exact tail is .. math:: \gamma_n = \sum_{i=1}^3 c_i p_i^n, \qquad |p_i|<1. This implies a rank-three Hankel structure and a third-order recurrence .. math:: \gamma_n + a_1\gamma_{n-1}+a_2\gamma_{n-2}+a_3\gamma_{n-3}=0. A correct finite rational-candidate workflow should select rank three under tight error and pole-radius thresholds. How to read the result ---------------------- Look for ranks 1 and 2 to be rejected, rank 3 to be selected, tiny rational error, and fitted poles matching the known stable poles. Run command ----------- .. code-block:: bash python examples/finite_nehari_exact_rational_tail.py Source code ----------- .. literalinclude:: ../../../examples/finite_nehari_exact_rational_tail.py :language: python :linenos: