R/tSIRRotate.R

Defines functions tSIRRotate

tSIRRotate <-
  function(x, y, h, ...){
    r <- length(dim(x)) - 1
    
    rotateStack <- vector("list", r)
    for(m in 1:r){
      rotateStack[[m]] <- t(eigenVectors(mModeTSIRMatrix(x, m, y, h, ...)))
    }
    
    
    for(m in 1:r){
      x <- tensorTransform(x, rotateStack[[m]], m)
    }
    
    return(list(x = x, U = rotateStack))
  }

Try the tensorBSS package in your browser

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

tensorBSS documentation built on June 2, 2021, 9:08 a.m.