warp_curve | R Documentation |
Applies a warping function to a given curve
warp_curve(betafun, gamfun)
betafun |
A function that takes a numeric vector |
gamfun |
A function that takes a numeric vector |
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
.
curv <- discrete2curve(beta[, , 1, 1])
gamf <- discrete2warping(seq(0, 1, length = 100)^2)
warp_curve(curv, gamf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.