Learn R Programming

fdasrvf (version 2.3.6)

discrete2warping: Converts a warping function from vector to functional data object

Description

Converts a warping function from vector to functional data object

Usage

discrete2warping(gam)

Value

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

Arguments

gam

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

Examples

Run this code
discrete2warping(toy_warp$gam[, 1])

Run the code above in your browser using DataLab