Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

times-.fts

Multiplication of Functional Time Series


Description

A method that lets you multiply functional time series (fts) and perform scalar multiplication of functional time series.

Usage

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

Arguments

Y1

an object of class fts or scalar

Y2

an object of class fts or scalar

Value

an object of class fts

See Also

Examples

## Not run: 
require(fda)
require(Rfssa)
data(Callcenter) # Read data
u=seq(0,1,length.out=240) # Define domain of functional data
d=12 # number of basis elements
basis=create.bspline.basis(rangeval = c(0,1),nbasis = d) # create basis object
smooth.calls=smooth.basis(u, matrix(nrow=240,ncol=365,Callcenter$calls), basis)
Y=fts(smooth.calls$fd) # create functional time series
plot(Y)
Ytimes=Y*Y # elementwise multiplication of the functional time series with itself
plot(Ytimes)
Ytimes2=2*Y # multiply 2 with every term in the functional time series
plot(Ytimes2)

## End(Not run)

Rfssa

Functional Singular Spectrum Analysis

v1.0.0
GPL (>= 2)
Authors
Hossein Haghbin [aut, cre], Seyed Morteza Najibi [aut], Jordan Trinka [aut], Mehdi Maadooliat [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.