elastic.depth {fdasrvf} | R Documentation |
Calculates elastic depth
Description
This functions calculates the elastic depth between set of functions in
R^1
Usage
elastic.depth(f, time, lambda = 0, pen = "roughness", parallel = FALSE)
Arguments
f |
matrix of sizes |
time |
vector of length |
lambda |
controls amount of warping (default = |
pen |
alignment penalty (default = |
parallel |
run computation in parallel (default = |
Value
Returns a list containing
amp |
amplitude depth |
phase |
phase depth |
amp_dist |
amplitude distance matrix |
phs_dist |
phase distance matrix |
References
T. Harris, J. D. Tucker, B. Li, and L. Shand, "Elastic depths for detecting shape anomalies in functional data," Technometrics, 10.1080/00401706.2020.1811156, 2020.
Examples
depths <- elastic.depth(simu_data$f[, 1:4], simu_data$time)
[Package fdasrvf version 2.3.1 Index]