powered by
Converts a warping function from vector to functional data object
discrete2warping(gam)
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\).
A numeric vector of length \(M\) specifying a warping function on an evenly spaced grid of \([0, 1]\) of length \(M\).
discrete2warping(toy_warp$gam[, 1])
Run the code above in your browser using DataLab