warp_srvf: Applies a warping function to a given SRVF

View source: R/refactoring.R

warp_srvfR Documentation

Applies a warping function to a given SRVF

Description

Applies a warping function to a given SRVF

Usage

warp_srvf(qfun, gamfun, betafun = NULL)

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.

Value

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

Examples

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

fdasrvf documentation built on Oct. 5, 2024, 1:08 a.m.