View source: R/elastic.depth.R
elastic.depth | R Documentation |
This functions calculates the elastic depth between set of functions
elastic.depth(f, time, lambda = 0, pen = "roughness", parallel = FALSE)
f |
matrix of N function of M time points (MxN) |
time |
sample points of functions |
lambda |
controls amount of warping (default = 0) |
pen |
alignment penalty (default="roughness") options are second derivative ("roughness"), geodesic distance from id ("geodesic"), and norm from id ("norm") |
parallel |
run computation in parallel (default = T) |
Returns a list containing
amp |
amplitude depth |
phase |
phase depth |
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.
depths <- elastic.depth(simu_data$f[, 1:4], simu_data$time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.