derivcurves: Computes the derivative of functional data.

Description Usage Arguments Details Value Author(s) Examples

View source: R/MFHD.R

Description

Often one set of curves y1 is given, and the second set of curves y2 are the (estimated) derivatives. This function computes these derivatives.

Usage

1
  derivcurves(y1,method="bspline")

Arguments

y1

A n by T matrix of functional data.

method

Type of derivative method, for more information see details.

Details

This function is a wraper for "fda.usc::fdata.deriv". See help("fda.usc::fdata.deriv").

Value

Returns the derivative of functional data.

Author(s)

K. Vakili.

Examples

1
2
3
4
5
6
7
set.seed(123)	
n<-50;
T<-100;	 
t.<-seq(0,2*pi,l=T)
y<-matrix(NA,n,T)
for(i in 1:n)	y[i,]<-runif(1,0,1)*sin(t.)+runif(1,0,1)*cos(t.)
y2<-derivcurves(y)	

MFHD documentation built on May 2, 2019, 3:24 a.m.