plus-.fts: Addition of Functional Time Series

+.ftsR Documentation

Addition of Functional Time Series

Description

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

Usage

## 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

## 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 <- Rfssa::fts(list(D), list(list(d, "bspline")), list(u))
plot(Y)
Yplus <- Y + Y # add the functional time series to itself
plot(Yplus)
Yplus2 <- Y + 2 # add 2 to every term in the functional time series
plot(Yplus2)

## End(Not run)

Rfssa documentation built on Sept. 9, 2022, 1:07 a.m.