Learn R Programming

fdasrvf (version 2.3.6)

curve_depth: Calculates elastic depth for a set of curves

Description

This functions calculates the elastic depth between set of curves. If the curves are describing multidimensional functional data, then rotated == FALSE and mode == 'O'

Usage

curve_depth(beta, mode = "O", rotated = TRUE, scale = TRUE, parallel = FALSE)

Value

Returns a list containing

amp

amplitude depth

phase

phase depth

Arguments

beta

Array of sizes \(n \times T \times N\) for \(N\) curves of dimension \(n\) evaluated on a grid of \(T\) points

mode

Open ("O") or Closed ("C") curves

rotated

Include rotation (default = TRUE)

scale

scale curves to unit length (default = TRUE)

parallel

run computation in parallel (default = TRUE)

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

Run this code
data("mpeg7")
# note: use more shapes and iterations, small for speed
out = curve_depth(beta[,,1,1:2])

Run the code above in your browser using DataLab