warp_curve {fdasrvf}R Documentation

Applies a warping function to a given curve

Description

Applies a warping function to a given curve

Usage

warp_curve(betafun, gamfun)

Arguments

betafun

A function that takes a numeric vector s of values in [0, 1] as input and returns the values of the underlying curve at s.

gamfun

A function that takes a numeric vector s of values in [0, 1] as input and returns the values of a diffeomorphic warping function at s.

Value

A function that takes a numeric vector s of values in [0, 1] as input and returns the values of the warped curve at s.

Examples

curv <- discrete2curve(beta[, , 1, 1])
gamf <- discrete2warping(seq(0, 1, length = 100)^2)
warp_curve(curv, gamf)

[Package fdasrvf version 2.3.1 Index]