Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rawfd2dataf

Transform Raw Functional Data to a dataf Object


Description

Constructs 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.

Usage

rawfd2dataf(X, range)

Arguments

X

Either a matrix of size n*d, or an array of dimension n*d*k of functional values. Here n stands for the number of functions, d is the number of equi-distant points in the domain where the functional values are evaluated, and if applicable, k is the dimensionality of the (vector-valued) functional data.

range

A vector of size two that represents the endpoints of the common domain of all functions X.

Value

A (possibly multivariate) dataf object corresponding to the functional data X evaluated at an equi-distant grid of points.

Author(s)

See Also

Examples

## 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))

ddalpha

Depth-Based Classification and Calculation of Data Depth

v1.3.11
GPL-2
Authors
Oleksii Pokotylo [aut, cre], Pavlo Mozharovskyi [aut], Rainer Dyckerhoff [aut], Stanislav Nagy [aut]
Initial release
2020-01-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.