R/depth.mahala.R

Defines functions depth.mahala

Documented in depth.mahala

#[export]
depth.mahala <- function(x, data) {
  a <- 1 + Rfast::mahala(x, Rfast::colmeans(data), Rfast::cova(data) )
  1/a
}

Try the Rfast2 package in your browser

Any scripts or data that you put into this service are public.

Rfast2 documentation built on Aug. 8, 2023, 1:11 a.m.