curve_depth {fdasrvf}R Documentation

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)

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)

Value

Returns a list containing

amp

amplitude depth

phase

phase depth

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

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

[Package fdasrvf version 2.2.0 Index]