Depth median

Share:

Description

Return point with maximum depth function value. If multiple points have the same value, mean average of them will be returned.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
depthMedian(x, ...)

## S4 method for signature 'matrix'
depthMedian(x, ...)

## S4 method for signature 'data.frame'
depthMedian(x, ...)

## S4 method for signature 'Depth'
depthMedian(x)

Arguments

x

object of class Depth or matrix.

...

arguments passed to depth function (e.g method).

Examples

1
2
3
4
5
6
7
# depthMedian for matrix
x = matrix(rnorm(600), nc = 3)
depthMedian(x)

# depthMedian works with object of class Depth
dp = depth(x)
depthMedian(dp)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.