partial_sum: Partial Sum

Description Usage Arguments Value Examples

View source: R/partial_sum.R

Description

Calculate the partial sum matrix of a functional time series.

Usage

1

Arguments

X

The functional time series being calculated, inputted in a matrix form with each row representing each observation of the functional data values on equidistant points of any prespecified interval.

Value

A square matrix of partial sums of the functional time series. The column (row) dimension of the output matrix is equal to the column dimension of the input matrix.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
N<-100
EX<-matrix(rep(0,N*100),ncol=100)
set.seed(1)
for (i in 1:N) {
temp<-rnorm(100,0,1)
EX[i,1]<-temp[1]
for (j in 2:100) {
EX[i,j]<-EX[i,j-1]+temp[j]
}
}
partial_sum(EX)

STFTS documentation built on Aug. 19, 2021, 9:06 a.m.

Related to partial_sum in STFTS...