Tensor Mean Across Single Mode
Given a mode for a K-tensor, this returns the K-1 tensor resulting from taking the mean across that particular mode.
modeMean(tnsr, m, drop) ## S4 method for signature 'Tensor' modeMean(tnsr, m = NULL, drop = FALSE)
tnsr |
the Tensor instance |
m |
the index of the mode to average across |
drop |
whether or not mode m should be dropped |
modeMean(tnsr,m=NULL,drop=FALSE)
K-1 or K Tensor, where K = x@num_modes
tnsr <- rand_tensor() modeMean(tnsr,1,drop=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.