spatial.depth {depth.plot} | R Documentation |
spatial.depth
is used to find the spatial depth of one or more p-variate observation(s) in a data cloud of numerous p-variate observations.
spatial.depth(x, data)
x |
A matrix or a data.frame of objects (numerical vector as one object) whose depth is to be found; each row consists a p-variate observation. |
data |
A matrix or a data.frame of objects which acts as the data cloud. Each row consists of a p-variate observation. |
Numerical vector of depths, one for each row in x
; or one depth value if x
is numerical.
Somedip Karmakar <somedip@yahoo.co.in>
Omker Mahalanobish <omker.scorpio@gmail.com>
u<-matrix(rnorm(90,0,1),ncol=3)
u0<-matrix(runif(9,0,1),ncol=3)
spatial.depth(u0,u)