R/mahalanobisDistance.R

Defines functions mahalanobisDistance

Documented in mahalanobisDistance

#' Title
#'
#' @param x
#' @param mu
#' @param S
#'
#' @return
#' @export
#'
#' @note
#'
#'
#'
#' @examples
mahalanobisDistance <- function(x, mu, S){
  # Ensure that S is not ill conditioned beforehand
  t <- pracma::dot(((x - mu) %/% S), (x - mu))
  return(t)
}
Mufabo/ICASSP20.T6.R documentation built on May 30, 2021, 11:20 a.m.