depthLP {DepthProc} | R Documentation |
Computes the LP depth of a point or vectors of points with respect to a multivariate data set.
depthLP(u, X, pdim = 2, la = 1, lb = 1, threads = -1, func = NULL)
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, data frame or list. If it is a matrix or data frame, then each row is viewed as one multivariate observation. If it is a list, all components must be numerical vectors of equal length (coordinates of observations). |
pdim |
dimension used in calculating depth function. |
la |
slope the weighing function. |
lb |
intercept in the weighing function. |
threads |
number of threads used in parallel computations. Default value -1 means that all possible cores will be used. |
func |
the weighing function. Currently it is not supported. |
Returns the depth of multivariate point u
with respect to data set X
.
Daniel Kosiorowski, Mateusz Bocian, Anna Wegrzynkiewicz and Zygmunt Zawadzki from Cracow University of Economics.
x <- matrix(rnorm(3000), ncol = 3) # Same results depthLP(x, x, pdim = 2)