spatial.depth: Spatial Depth

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1

Arguments

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.

Value

Numerical vector of depths, one for each row in x; or one depth value if x is numerical.

Author(s)

Somedip Karmakar <somedip@yahoo.co.in>

Omker Mahalanobish <omker.scorpio@gmail.com>

Examples

1
2
3
u<-matrix(rnorm(90,0,1),ncol=3)
u0<-matrix(runif(9,0,1),ncol=3)
spatial.depth(u0,u)

Example output

[1] 0.5151020 0.5842748 0.6455065

depth.plot documentation built on May 1, 2019, 7:50 p.m.