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: 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])

Example:
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

Result:
The corr function for temperature dataset is printed, using
31 Fourier functions



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