From a (possibly multivariate) functional data object
dataf constructs an array of the functional values
evaluated at an equi-distant grid of points.
Functions to be transformed, represented by a (possibly multivariate)
The common range of the domain where the functions
Grid size to which all the functional data are transformed. All functional observations are
transformed into vectors of their functional values of length
If the functional data are univariate (scalar-valued), a matrix of size
m*d is given, with each row
corresponding to one function. If the functional data are
k-variate with k>1, an array of size
of the functional values is given.
Stanislav Nagy, nagy at karlin.mff.cuni.cz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
## transform a matrix into a functional data set and back n = 5 d = 21 X = matrix(rnorm(n*d),ncol=d) R = rawfd2dataf(X,range=c(0,1)) R2 = dataf2rawfd(R,range=c(0,1),d=d) all.equal(X,R2) ## transform a functional dataset into a raw matrix of functional values dataf = dataf.population()$dataf dataf2rawfd(dataf,range=c(1950,2015),d=66) ## transform an array into a multivariate functional data set and back k = 3 X = array(rnorm(n*d*k),dim=c(n,d,k)) R = rawfd2dataf(X,range=c(-1,1)) dataf2rawfd(R,range=c(-1,1),d=50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.