fncDepth: Basic function for functional depths

Description Usage Arguments Examples

View source: R/functional_depths.R

Description

Calculates depth functions.

Usage

1
2
3
4
5
6
7
fncDepth(u, X = NULL, method = "MBD", byrow = NULL, ...)

## S3 method for class 'matrix'
fncDepth(u, X = NULL, method = "MBD", byrow = NULL, ...)

## S3 method for class 'zoo'
fncDepth(u, X = NULL, method = "MBD", byrow = NULL, ...)

Arguments

u

data

X

reference set. If null u will be used as reference.

method

depth method - "MBD" (default), or "FM" (Frainman-Muniz depth)

byrow

logical or character.

...

additional arguments passed to fncDepthFM.

Examples

1
2
3
4
5
6
7
8
9
x <- matrix(rnorm(60), ncol = 20)
fncDepth(x, method = "FM", dep1d = "Mahalanobis")
fncDepth(x, byrow = FALSE)

# zoo and xts
library(xts)
data(sample_matrix)
sample.xts <- as.xts(sample_matrix, descr = "my new xts object")
fncDepth(sample.xts)

zzawadz/DepthProc documentation built on July 4, 2018, 10:14 a.m.