discrete2warping {fdasrvf}R Documentation

Converts a warping function from vector to functional data object

Description

Converts a warping function from vector to functional data object

Usage

discrete2warping(gam)

Arguments

gam

A numeric vector of length MM specifying a warping function on an evenly spaced grid of [0,1][0, 1] of length MM.

Value

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

Examples

discrete2warping(toy_warp$gam[, 1])

[Package fdasrvf version 2.3.1 Index]