modeMean-methods

0th

Percentile

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.

Usage
modeMean(tnsr, m, drop)

# S4 method for Tensor modeMean(tnsr, m = NULL, drop = FALSE)

Arguments
tnsr

the Tensor instance

m

the index of the mode to average across

drop

whether or not mode m should be dropped

Details

modeMean(tnsr,m=NULL,drop=FALSE)

Value

K-1 or K Tensor, where K = x@num_modes

See Also

modeSum

Aliases
  • modeMean-methods
  • modeMean
  • modeMean,Tensor-method
Examples
# NOT RUN {
tnsr <- rand_tensor()
modeMean(tnsr,1,drop=TRUE)
# }
Documentation reproduced from package rTensor, version 1.4, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.