Learn R Programming

fdasrvf (version 2.3.6)

warp_srvf: Applies a warping function to a given SRVF

Description

Applies a warping function to a given SRVF

Usage

warp_srvf(qfun, gamfun, betafun = NULL)

Value

A function that takes a numeric vector \(s\) of values in \([0, 1]\) as input and returns the values of the warped SRVF.

Arguments

qfun

A function that takes a numeric vector \(s\) of values in \([0, 1]\) as input and returns the values of the SRVF of an 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\).

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\). Defaults to NULL.

Examples

Run this code
q <- curve2srvf(beta[, , 1, 1])
warp_srvf(q, get_identity_warping())

Run the code above in your browser using DataLab