powered by
Functions for computing various depth measures for functional data. Compute Functional Data Depth
depth( fdataobj, fdataori = NULL, method = c("FM", "mode", "RP", "RT", "BD", "MBD", "MEI", "FSD", "KFSD", "RPD"), ... )
A numeric vector of depth values, one per curve in fdataobj.
An object of class 'fdata' to compute depth for.
An object of class 'fdata' as reference sample. If NULL, uses fdataobj as reference.
Depth method to use. One of "FM" (Fraiman-Muniz), "mode" (modal), "RP" (random projection), "RT" (random Tukey), "BD" (band depth), "MBD" (modified band depth), "MEI" (modified epigraph index), "FSD" (functional spatial depth), "KFSD" (kernel functional spatial depth), or "RPD" (random projection with derivatives). Default is "FM".
Additional arguments passed to the specific depth function.
Unified interface for computing various depth measures for functional data.
Available methods:
Fraiman-Muniz depth - integrates univariate depths over domain
Modal depth - based on kernel density estimation
Random projection depth - projects to random directions
Random Tukey depth - halfspace depth via random projections
Band depth - proportion of bands containing the curve (1D only)
Modified band depth - allows partial containment (1D only)
Modified epigraph index - proportion of time below other curves (1D only)
Functional spatial depth - based on spatial signs
Kernel functional spatial depth - smoothed FSD
Random projection with derivatives - includes curve derivatives
fd <- fdata(matrix(rnorm(100), 10, 10)) # Different depth methods depth(fd, method = "FM") depth(fd, method = "mode") depth(fd, method = "RP")
Run the code above in your browser using DataLab