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.8333333 0.7666667 0.7333333
fncDepthMBD(x, x)
#> [1] 0.8333333 0.7666667 0.7333333