Skip to content

Function: bootstrapSearchlight() ​

ts
function bootstrapSearchlight(
   mask, 
   radius?, 
   iter?, 
   options?): ROIVolWindow[];

Defined in: src/searchlight/searchlight.ts:402

Create a bootstrap searchlight iterator.

This function generates a bootstrap searchlight iterator by randomly sampling center voxels with replacement.

Parameters ​

mask ​

| NeuroVol | LogicalNeuroVol

A NeuroVol object representing the brain mask

radius? ​

number = 8

The radius of the searchlight sphere in mm (default: 8)

iter? ​

number = 100

Number of bootstrap iterations (default: 100)

options? ​

RandomSearchlightOptions = {}

Randomness control: seed or rng. Without either, each call draws a fresh seed, so successive calls give different samples.

Returns ​

ROIVolWindow[]

Array of ROIVolWindow objects

Released under the MIT License.