Skip to content

Type Alias: RandomSearchlightOptions ​

ts
type RandomSearchlightOptions = RandomOptions & object;

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

Options for searchlights with randomly chosen centers (randomSearchlight, bootstrapSearchlight).

seed makes the centers reproducible; rng supplies a custom generator returning numbers in [0, 1) and takes precedence over seed. With neither, a fresh seed is drawn on every call.

Type Declaration ​

clipToMask? ​

ts
optional clipToMask?: boolean;

Restrict each sampled sphere to nonzero mask voxels (default: true).

Released under the MIT License.