warp_curve: Applies a warping function to a given curve

View source: R/refactoring.R

warp_curveR 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)

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