srvf_to_f {fdasrvf} | R Documentation |
Transformation from SRSF Space
Description
This function transforms SRVFs back to the original functional space for
functions in R^1
.
Usage
srvf_to_f(q, time, f0 = 0)
Arguments
q |
Either a numeric vector of a numeric matrix or a numeric array specifying the SRSFs that need to be transformed.
|
time |
A numeric vector of length |
f0 |
Either a numeric value or a numeric vector of or a numeric matrix specifying the initial value of the curves in the original functional space. It must be:
|
Value
A numeric array of the same shape as the input q
storing the
transformation of the SRVFs q
back to the original functional space.
References
Srivastava, A., Wu, W., Kurtek, S., Klassen, E., Marron, J. S., May 2011. Registration of functional data using fisher-rao metric, arXiv:1103.3817v2.
Tucker, J. D., Wu, W., Srivastava, A., Generative models for functional data using amplitude and phase separation, Computational Statistics and Data Analysis (2012), 10.1016/j.csda.2012.12.001.
Examples
q <- f_to_srvf(simu_data$f, simu_data$time)
f <- srvf_to_f(q, simu_data$time, simu_data$f[1, ])