timedom {freqdom} | R Documentation |
Defines a linear filter
Description
Creates an object of class timedom
. This object corresponds to a multivariate linear filter.
Usage
timedom(A, lags)
Arguments
A |
a vector, matrix or array. If array, the elements |
lags |
a vector of increasing integers. It corresponds to the time lags of the filter. |
Details
This class is used to describe a linear filter, i.e. a sequence of matrices, each of which correspond to a certain lag. Filters can, for example, be used to transform a sequence into a new sequence
by defining
See filter.process()
.
Formally we consider a collection of complex-valued matrices
, all of which have the same dimension
. Moreover, we consider lags
. The object this function creates corresponds to the mapping
, where
.
Value
Returns an object of class timedom
. An object of class timedom
is a list containing the following components:
-
operators
returns the array
A
as given in the argument. -
lags
returns the vector
lags
as given in the argument.
See Also
Examples
# In this example we apply the difference operator: Delta X_t= X_t-X_{t-1} to a time series
X = rar(20)
OP = array(0,c(2,2,2))
OP[,,1] = diag(2)
OP[,,2] = -diag(2)
A = timedom(OP, lags = c(0,1))
filter.process(X, A)