Right. fd and fData are objects for functional data and I have two functional datasets in fd objects, say X and Y. I need to compute Modified Band Depth (MBD) of these data including each observation of the other. I mean, for each curve in X I have to create a functional dataset combining all the observations in Y with the observation in X. I need to do this several times, and the problem is that MBD function is only available for fData objects. I haven´t been able to make the conversion from fd to fData.
SE_hat_U<-fd(basisobj=BSpl)
for(i in 1:61){
SE_hat_U$coefs<-cbind(SE_hat_U$coefs, sm[[i]]$fd$coefs)
}
SE_hat_U$fdnames$reps<-(1:61)
X<-SE_hat_U[as.numeric(NT$Id)]
Y<-SE_hat_U[!datos$Id%in%(NT$Id)]
This is the code I have but i don't know how to turn SE_hat_U into a fData object instead of a fd one.