Skip to contents

Reconstructs full voxel-space time series for a scan by computing basis %*% t(loadings) + offset. Only available when compression_mode = "latent".

Reconstruct the full voxel-space data from the latent representation. This is computationally expensive and should be used sparingly.

Usage

reconstruct_voxels(x, scan_name = NULL, rows = NULL, voxels = NULL, ...)

# S3 method for class 'bids_h5_study_dataset'
reconstruct_voxels(x, scan_name, rows = NULL, voxels = NULL, ...)

# S3 method for class 'latent_dataset'
reconstruct_voxels(x, scan_name = NULL, rows = NULL, voxels = NULL, ...)

Arguments

x

A bids_h5_study_dataset object opened in latent mode.

scan_name

Character. Name of the scan to reconstruct.

rows

Integer vector of timepoint indices to return, or NULL for all.

voxels

Integer vector of voxel indices to return, or NULL for all.

...

Additional arguments passed to methods.

Value

A numeric matrix [T, V] (or subset thereof).