feval-methods: Evaluating A Functional Data Object

Description Usage Arguments Value Method (fourier+, numeric) Method (bspline+, numeric) Method (fd+, numeric) Method (bifd+, numeric, numeric) Author(s)

Description

This generic function provides methods to evaluate different types of functional data (basis function, univariate function, bivariate function) at specified argument values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
feval(f, x, ...)

## For bifd+
# feval(f, x, y, ...)

## S4 method for signature ''fourier+',numeric'
feval(f, x, ...)

## S4 method for signature ''bspline+',numeric'
feval(f, x, ...)

## S4 method for signature ''fd+',numeric'
feval(f, x, ...)

## S4 method for signature ''bifd+',numeric'
feval(f, x, y, ...)

Arguments

f

An object of class basis+, fd+, or bifd+.

x

Values that f is evaluated on.

y

Only used when f is of class bifd+, in which case f is evaluated on two arguments, x and y.

...

Additional parameters, currently unused.

Value

See Method (...) sections for the actual implementations of this generic function.

Method (fourier+, numeric)

f - A fourier+ object.
x - A numeric vector.

feval(f, x) returns a matrix R of f@ncoef rows and length(x) columns, with R[i, j] representing the value of the i-th basis function evaluated on x[j].

Method (bspline+, numeric)

f - A bspline+ object.
x - A numeric vector.

feval(f, x) returns a matrix R of f@ncoef rows and length(x) columns, with R[i, j] representing the value of the i-th basis function evaluated on x[j].

Method (fd+, numeric)

f - An fd+ object.
x - A numeric vector.

feval(f, x) returns a matrix R of n rows and length(x) columns where n is the number of function curves in f. R[i, j] equals the value of the i-th function evaluated on x[j].

Method (bifd+, numeric, numeric)

f - A bifd+ object.
x, y - Numeric vectors.

feval(f, x, y) returns a matrix R of length(x) rows and length(y) columns, with R[i, j] equal to the value of f(x[i], x[j]).

Author(s)

Yixuan Qiu <http://statr.me/>


yixuan/fdaplus documentation built on May 4, 2019, 5:29 p.m.