R/tensorCentering.R

Defines functions tensorCentering

Documented in tensorCentering

tensorCentering <-
function(x){
  r <- length(dim(x)) - 1
  sweep(x, 1:r, apply(x, 1:r, mean), '-')
}

Try the tensorBSS package in your browser

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

tensorBSS documentation built on March 18, 2018, 2:12 p.m.