powered by
Computes the distance between two warping functions
get_warping_distance(gam1fun, gam2fun)
A numeric value storing the distance between the two warping functions.
A function that takes a numeric vector \(s\) of values in \([0, 1]\) as input and returns the values of the first warping function at \(s\).
A function that takes a numeric vector \(s\) of values in \([0, 1]\) as input and returns the values of the second warping function at \(s\).
gam1 <- discrete2warping(toy_warp$gam[, 1]) gam2 <- discrete2warping(toy_warp$gam[, 2]) get_warping_distance(gam1, gam2) get_warping_distance(gam1, get_identity_warping())
Run the code above in your browser using DataLab