times-.fts: Multiplication of Functional Time Series

Description Usage Arguments Value See Also Examples

Description

A method for functional time series (fts) pointwise multiplication and fts-scalar multiplication. Note that if the fts is multivariate then a vector of numerics may be provided allowing for multiplication of different variables by different scalars. For example, multivariate fts-numeric multiplication follows the form of Y*c(1,2) if Y is a bivariate fts.

Usage

1
2
## S3 method for class 'fts'
Y1 * Y2

Arguments

Y1

An object of class fts or numeric.

Y2

An object of class fts or numeric.

Value

An object of class fts.

See Also

fts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
require(Rfssa)
load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Callcenter.RData")
D <- matrix(sqrt(Callcenter$calls), nrow = 240)
u <- seq(0, 1, length.out = 240) # Define domain of functional data
d <- 22 # number of basis elements
Y <- fts(list(D), list(list(d, "bspline")), list(u))
plot(Y)
Ytimes <- Y * Y # multiply the functional time series by itself
plot(Ytimes)
Ytimes2 <- Y * 2 # multiply every term in the fts by 2
plot(Ytimes2)

## End(Not run)

Rfssa documentation built on Jan. 10, 2022, 1:07 a.m.