mvtsa.preprocessing.dynamize#
- mvtsa.preprocessing.dynamize(X, lags)[source]#
Lag-extended data matrix of dynamic PCA (Ku, Storer and Georgakis, 1995).
Row
kis[x(k), x(k-1), ..., x(k-l)]; the result hasT - lrows andn (l + 1)columns. Rowkof the result corresponds to samplek + lofX.>>> dynamize(np.arange(5.0), 2).tolist() [[2.0, 1.0, 0.0], [3.0, 2.0, 1.0], [4.0, 3.0, 2.0]]