| mean-methods | R Documentation |
Computes the voxel-wise mean across the 4th dimension (time), returning
a 3D DenseNeuroVol or SparseNeuroVol.
## S4 method for signature 'DenseNeuroVec'
mean(x, ...)
## S4 method for signature 'SparseNeuroVec'
mean(x, ...)
## S4 method for signature 'NeuroVec'
mean(x, ...)
x |
A |
... |
Ignored. |
A NeuroVol containing the temporal mean at
each voxel.
bspace <- NeuroSpace(c(10, 10, 10, 20), c(1, 1, 1))
dat <- array(rnorm(10 * 10 * 10 * 20), c(10, 10, 10, 20))
vec <- DenseNeuroVec(dat, bspace)
mean_vol <- mean(vec)
dim(mean_vol) # 10 10 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.