Library: | fda |
See also: | fdamean plotfd grfd evalfd data2fd |
Quantlet: | evalfdacorr | |
Description: | evaluates the corr function of a fdobject at vector EVALARG x EVALARG |
Usage: | fdavar = evalfdacorr(evalarg,fdobject) | |
Input: | ||
evalarg | m x 1 matrix for evaluation | |
fdobject | list, functional object (fd object) with n replications | |
Output: | ||
fdacorr | m^2 x 3 vector, values of corr(t1,t2) at t1,t2 in evalarg, fdacorr[,3]=corr(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) fdacorr=evalfdacorr(grid(0,1/30,29),fdtempf31) fdacorr
The corr function for temperature dataset is printed, using 31 Fourier functions