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 May 29, 2024, 8:45 a.m.