eval.funts: Evaluate a Functional Time Series (funts) Object on a Given...

View source: R/funts_methods.R

eval.funtsR Documentation

Evaluate a Functional Time Series (funts) Object on a Given Grid

Description

This function allows you to evaluate a Functional Time Series (funts) object on a specified grid of argument values. The result is a list of matrices, each matrix corresponding to one dimension of the functional data.

Usage

eval.funts(argvals, obj)

Arguments

argvals

a list or numeric vector specifying the grid points at which to evaluate the functional time series. For multivariate functional data, provide a list of grids corresponding to each dimension.

obj

an object of class funts to be evaluated.

Details

The argvals argument can be a list of grids for multivariate functional data. The function handles both functional basis and empirical basis cases for evaluation. For empirical basis with irregular grids, a warning is issued as this feature is under development.

Value

A list of matrices, where each matrix represents the evaluated values of the functional data on the specified grid.

See Also

funts

Examples

data("Montana")
y <- Montana
u <- seq(0, 23, len = 4)
v <- seq(1, 33, len = 3)
grid <- list(u, list(v, v))
eval.funts(grid, y)

Rfssa documentation built on May 29, 2024, 8:58 a.m.