Computes the modified band depth.

fncDepthMBD(u, X)

Arguments

u

Numerical vector or matrix whose depth is to be calculated. Dimension has to be the same as that of the observations.

X

The data as a matrix. If it is a matrix or data frame, then each row is viewed as one multivariate observation.

Examples

x <- matrix(rnorm(60), nc = 20) fncDepthMBD(x)
#> [1] 0.7833333 0.8000000 0.7500000
fncDepthMBD(x, x)
#> [1] 0.7833333 0.8000000 0.7500000