registerSingleIter: Registers a sample of curves to its cross-sectional average

Description Usage Arguments Value Examples

View source: R/registerSingleIter.R

Description

Uses the fda::register.fd function to register a sample of curves, after smoothing them.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
registerSingleIter(
  dataToRegister, 
  Lambda_ConstrainedWarping, 
  abscissaFrom, 
  abscissaTo, 
  abscissaIncrement, 
  Convergence_Threshold = 1e-05,
  basisOrder = 4, 
  basisBreakFreq = 3, 
  Lambdas_Roughness = exp(-5:5)
)

Arguments

dataToRegister

A matrix of curves to register. Each column is a new curve.

Lambda_ConstrainedWarping

The roughness penalty for estimating the warping function. Smaller values will allow more undulations in the warping function.

abscissaFrom

Mininum value of abscissa

abscissaTo

Maximum value of abscissa

abscissaIncrement

Increment of abscissa

Convergence_Threshold

The value for argument conv in function register.fd

basisOrder

Order of B-spline bases

basisBreakFreq

Frequency of knots of basis functions

Lambdas_Roughness

Roughness penalty for smoothing using B-splines

Value

dataToRegister

Original dataset to register

Regfd_Final

Final registered data object. Output of register.fd

registeredCurves

A matrix of registered curves extracted from the registered object

registeredCurves.D1

A matrix of first derivatives of registered curves extracted from the registered object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data( growth, package = 'fda' )
Mat1 <- growth[['hgtm']]
Arguments <- growth[['age']]

#Mat1Registered <- registerSingleIter(
#  dataToRegister = Mat1, 
#  Lambda_ConstrainedWarping = 0.005, 
#  abscissaFrom = 1, 
#  abscissaTo = 16, 
#  abscissaIncrement = 0.5, 
#  Convergence_Threshold = 1e-05,
#  basisOrder = 5, 
#  basisBreakFreq = 3, 
#  Lambdas_Roughness = exp(-5:5), 
#)

snandi/Registration documentation built on May 30, 2019, 5:04 a.m.