eqdisco.dynamics.lagged_regressors#

eqdisco.dynamics.lagged_regressors(u, y, na=2, nb=2, nk=1, input_names=None, output_name='y')[source]#

Regressor matrix of a NARX model.

Parameters:
uarray of shape (T,) or (T, m)

Input sequence(s); None for an autonomous (NAR) model.

yarray of shape (T,)

Output sequence.

na, nb, nkint

Output order, input order and input delay (\(n_k\ge 0\)).

Returns:
Phindarray of shape (T - t0, na + m * nb)

Rows \([y(t-1),\dots,y(t-n_a),u(t-n_k),\dots]\) for \(t=t_0,\dots,T-1\).

targetndarray of shape (T - t0,)
nameslist of str

Column names such as "y(k-1)" and "u(k-2)".

t0int

Index of the first predicted sample.