depthf.hM | R Documentation |
The h-mode depth of functional real-valued data.
depthf.hM(datafA, datafB, range = NULL, d = 101, norm = c("C", "L2"),
q = 0.2)
datafA |
Functions whose depth is computed, represented by a |
datafB |
Random sample functions with respect to which the depth of |
range |
The common range of the domain where the functions |
d |
Grid size to which all the functional data are transformed. For depth computation,
all functional observations are first transformed into vectors of their functional values of length |
norm |
The norm used for the computation of the depth. Two possible
choices are implemented: |
q |
The quantile used to determine the value of the bandwidth |
The function returns the vectors of the sample h-mode depth values. The kernel used in the evaluation is the standard Gaussian kernel, the bandwidth value is chosen as a quantile of the non-zero distances between the random sample curves.
A vector of length m
of the h-mode depth values.
Stanislav Nagy, nagy@karlin.mff.cuni.cz
Cuevas, A., Febrero, M. and Fraiman, R. (2007). Robust estimation and classification for functional data via projection-based depth notions. Computational Statistics 22 (3), 481–496.
Nagy, S., Gijbels, I. and Hlubinka, D. (2016). Weak convergence of discretely observed functional data with applications. Journal of Multivariate Analysis, 146, 46–62.
datafA = dataf.population()$dataf[1:20]
datafB = dataf.population()$dataf[21:50]
depthf.hM(datafA,datafB)
depthf.hM(datafA,datafB,norm="L2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.