fdepth(data, type = c("FM", "mode", "RP", "RPD"), trim = 0.25)
fds
or fts
.type="FM"
, it computes the functional depth of Fraiman and Muniz (2001), which is considered as the first functional depth.
If type="mode"
, it computes the functional depth of Cuevas et al. (2006). A functional mode is defined as the curve most densely surrounded by the rest of curves of the dataset.
If type="RP"
and type="RPD"
, it computes random projection functional depth of Cuevas et al. (2007).
Cuevas et al. (2007) considered the random projection depth based on measuring the depth of the functional data
under projections and taking additional information of their derivatives. The basic idea is to project each functional curve, along a random direction, defining a
point in $R^2$. A data depth in $R^2$ provides an order of the projected points.
The argument trim=0.25 first order curves by depth, and then trim 25 percent curves that have comparably lower depth.fdepth(data = ElNino, type = "FM")
fdepth(data = ElNino, type = "mode")
fdepth(data = ElNino, type = "RP")
fdepth(data = ElNino, type = "RPD")
Run the code above in your browser using DataLab