powered by
Warp time points according to a warping function.
warp.time(tp, coef)
A vector of time points, not necessarily equidistant.
The coefficients of the parametric time warping function: the first coefficient is the constant shift, the second the linear stretch etcetera.
The function returns a vector of warped time points.
Wehrens, R. et al. (2015) "Fast parametric warping of peak lists", Bioinformatics. DOI: 10.1093/bioinformatics/btv299.
# NOT RUN { time <- 1:100 ## simple shift and compression warp.time(time, c(-10, .99)) # }
Run the code above in your browser using DataLab