Main Content

reflect

Reflect lag operator polynomial coefficients around lag zero

Syntax

B = reflect(A)

Description

Given a lag operator polynomial object A(L),B = reflect(A) negates all coefficient matrices except the coefficient matrix at lag 0. For example, given a polynomial of degree p,

A(L)=A0+A1L+A2L2+...+APLp

the reflected polynomial B(L) is

B(L)=A0A1LA2L2...APLp

with the same degree and dimension as A(L).

Examples

expand all

Create a LagOp polynomial and its reflection:

A = LagOp({0.8 1 0 .6});
B = reflect(A)
B = 
    1-D Lag Operator Polynomial:
    -----------------------------
        Coefficients: [0.8 -1 -0.6]
                Lags: [0 1 3]
              Degree: 3
           Dimension: 1