R/mahala.R

Defines functions mahala

Documented in mahala

#[export]
mahala <- function(x,mu,sigma,ischol = FALSE) {
  if (!is.matrix(x)) 
    x <- matrix(x, 1, length(x))
  if (!is.matrix(sigma)) 
    sigma <- as.matrix(sigma)
  .Call(Rfast_mahaCpp,x,mu,sigma,ischol)
}

Try the Rfast package in your browser

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

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.