modeMean-methods | R Documentation |
Given a mode for a K-tensor, this returns the K-1 tensor resulting from taking the mean across that particular mode.
modeMean(darr, m = NULL, drop = FALSE)
## S4 method for signature 'DelayedArray'
modeMean(darr, m, drop)
darr |
DelayedArray object |
m |
the index of the mode to average across |
drop |
whether or not mode m should be dropped |
This function is an extension of the modeMean
by DelayedArray.
NOTE: Sparse mode of modeMean is not available for now.
modeMean(darr, m=NULL, drop=FALSE)
K-1 or K Tensor, where K = length(dim(darr))
modeSum
library("DelayedRandomArray")
darr <- RandomUnifArray(c(1,2,3))
modeMean(darr, 1, drop=FALSE)
modeMean(darr, 1, drop=TRUE)
modeMean(darr, 2)
modeMean(darr, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.