SparseNeuroVec-class: SparseNeuroVec

Description Usage Arguments Slots Examples

Description

a sparse four-dimensional brain image, backed by a matrix, where each column represents a non-zero vector spanning the fourth dimension (e.g. time), and defined by a volumetric mask.

constructs a SparseNeuroVec object

Usage

1

Arguments

data

an array which can be a matrix or 4-D array

space

a NeuroSpace instance

mask

a 3D array, 1D vector of type logical, or an instance of type LogicalNeuroVol

Slots

data

the matrix of series, where rows span across voxel space and columns span the fourth dimensions

Examples

1
2
3
4
5
bspace <- NeuroSpace(c(10,10,10,100), c(1,1,1))
mask <- array(rnorm(10*10*10) > .5, c(10,10,10))
mat <- matrix(rnorm(sum(mask)), 100, sum(mask))
svec <- SparseNeuroVec(mat, bspace,mask)
length(indices(svec)) == sum(mask)

bbuchsbaum/neuroim2 documentation built on Nov. 14, 2019, 7:01 a.m.