depthf.hM2 {ddalpha} | R Documentation |
Bivariate h-Mode Depth for Functional Data Based on the L^2
Metric
Description
The h-mode depth
of functional bivariate data (that is, data of the form X:[a,b] \to R^2
,
or X:[a,b] \to R
and the derivative of X
) based on the
L^2
metric of functions.
Usage
depthf.hM2(datafA, datafB, range = NULL, d = 101, q = 0.2)
Arguments
datafA |
Bivariate functions whose depth is computed, represented by a multivariate |
datafB |
Bivariate 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 |
q |
The quantile used to determine the value of the bandwidth |
Details
The function returns the vectors of 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.
Value
Three vectors of length m
of h-mode depth values are returned:
-
hM
the unscaled h-mode depth, -
hM_norm
the h-mode depthhM
linearly transformed so that its range is [0,1], -
hM_norm2
the h-mode depthFD
linearly transformed by a transformation such that the range of the h-mode depth ofB
with respect toB
is [0,1]. This depth may give negative values.
Author(s)
Stanislav Nagy, nagy@karlin.mff.cuni.cz
References
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.
See Also
Examples
datafA = dataf.population()$dataf[1:20]
datafB = dataf.population()$dataf[21:50]
datafA2 = derivatives.est(datafA,deriv=c(0,1))
datafB2 = derivatives.est(datafB,deriv=c(0,1))
depthf.hM2(datafA2,datafB2)
depthf.hM2(datafA2,datafB2)$hM
# depthf.hM2(cbind(A2[,,1],A2[,,2]),cbind(B2[,,1],B2[,,2]))$hM
# the two expressions above should give the same result