Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: fda
See also: Bsplineevalgd polyevalgd

Quantlet: Fourierevalgd
Description: evaluates the Fourier basis on xvec.

Usage: phi = Fourierevalgd(xvec,nbasis,period{,deriv})
Input:
xvec p x q matrix, arguments where the Fourier bases should be evaluated at.
nbasis scalar, dimension of the functional basis
period scalar, period
deriv r x 1 vector of integers (>= 0), contains the orders of derivatives to compute. If deriv = 0 the actual Fourier bases will be calculated. The default value is deriv = 0.
Output:
phi (p x (nbasis) x r x q) array, values of all Fourier basis function values for argument matrix xvec

Example:
library("fda")
tvec = #(0, 2, 3, 6, 10)
Fourierevalgd(tvec, 5, 10, #(0, 3))

Result:
Contents of phi

[,,1,1,1,1,1,1]
[1,]  0.31623        0  0.44721        0  0.44721
[2,]  0.31623  0.42533   0.1382  0.26287  -0.3618
[3,]  0.31623  0.42533  -0.1382 -0.26287  -0.3618
[4,]  0.31623 -0.26287  -0.3618  0.42533   0.1382
[5,]  0.31623 -1.0958e-16  0.44721 -2.1916e-16  0.44721
[,,2,1,1,1,1,1]
[1,]        0 -0.11093 -2.0386e-17 -0.88745 -1.6309e-16
[2,]        0 -0.03428   0.1055  0.71796  0.52163
[3,]        0  0.03428   0.1055  0.71796 -0.52163
[4,]        0  0.089745 -0.065204 -0.27424  0.84402
[5,]        0 -0.11093 -4.7568e-17 -0.88745 -2.1744e-15



Author: M. Benko, J. Ulbricht 20040713 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006