bootstrap_searchlight | R Documentation |
This function generates a spherical searchlight iterator by sampling regions from within a brain mask. It creates searchlight spheres around random center voxels, allowing the same surrounding voxel to belong to multiple searchlight samples.
bootstrap_searchlight(mask, radius = 8, iter = 100)
mask |
A |
radius |
A numeric value specifying the radius of the searchlight sphere in voxel units. Default is 8. |
iter |
An integer specifying the total number of searchlights to sample. Default is 100. |
Searchlight centers are sampled without replacement, but the same surrounding voxel can belong to multiple searchlight samples.
A deferred_list
object containing ROIVolWindow
objects, each representing a spherical searchlight region sampled from within the mask.
# Load an example brain mask
mask <- read_vol(system.file("extdata", "global_mask.nii", package="neuroim2"))
# Generate a bootstrap searchlight iterator with a radius of 6 voxels
## Not run:
searchlights <- bootstrap_searchlight(mask, radius = 6)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.