Learn R Programming

fdasrvf (version 2.3.6)

warp_curve: Applies a warping function to a given curve

Description

Applies a warping function to a given curve

Usage

warp_curve(betafun, gamfun)

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\).

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\).

Examples

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

Run the code above in your browser using DataLab