rawfd2dataf | R Documentation |
dataf
ObjectConstructs a (possibly multivariate) functional data object given by an array of its functional values
evaluated at an equi-distant grid of points, and transforms it into a dataf
object more suitable
for work in the ddalpha
package.
rawfd2dataf(X, range)
X |
Either a matrix of size |
range |
A vector of size two that represents the endpoints of the common domain of all functions |
A (possibly multivariate) dataf
object corresponding to the functional data X
evaluated at an
equi-distant grid of points.
Stanislav Nagy, nagy@karlin.mff.cuni.cz
dataf2rawfd
depthf.fd1
depthf.fd2
## transform a matrix into a functional data set
n = 5
d = 21
X = matrix(rnorm(n*d),ncol=d)
rawfd2dataf(X,range=c(0,1))
## transform an array into a multivariate functional data set
k = 3
X = array(rnorm(n*d*k),dim=c(n,d,k))
rawfd2dataf(X,range=c(-1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.