index_to_grid | R Documentation |
Convert 1d indices to n-dimensional grid coordinates
index_to_grid(x, idx)
## S4 method for signature 'NeuroSlice,numeric'
index_to_grid(x, idx)
## S4 method for signature 'NeuroSpace,numeric'
index_to_grid(x, idx)
## S4 method for signature 'NeuroVec,index'
index_to_grid(x, idx)
## S4 method for signature 'NeuroVec,integer'
index_to_grid(x, idx)
## S4 method for signature 'NeuroVol,index'
index_to_grid(x, idx)
## S4 method for signature 'NeuroVol,integer'
index_to_grid(x, idx)
x |
the object |
idx |
the 1d |
a matrix of grid coordinates
bvol <- NeuroVol(array(0, c(10,10,10)), NeuroSpace(c(10,10,10), c(1,1,1)))
idx <- 1:10
g <- index_to_grid(bvol, idx)
bvol[g]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.