Library: | fda |
See also: | fdamean plotfd grfd evalfd |
Quantlet: | evalfdacov | |
Description: | evaluates the cov function of a fdobject at the vector EVALARG x EVALARG |
Usage: | fdavar = evalfdacov(evalarg,fdobject) | |
Input: | ||
evalarg | m x 1 matrix for evaluation | |
fdobject | list, functional object (fd object) with n replications | |
Output: | ||
fdacov | m^2 x 3 vector, values of cov(t1,t2) at t1,t2 in evalarg, fdacov[,3]=cov(fdacov[,1],fdacov[,2]) |
library("fda") y = read("dailtemp.dat") tvec=#(1:365)/365 fdb = createfdbasis("fourier", #(0,1),31,1) fdtempf31=data2fd(y,tvec,fdb) fdacovf=evalfdacov(grid(0,1/30,29),fdtempf31) fdacovf
The cov function for temperature dataset is printed, using 31 Fourier functions