Function: splitFill()
ts
function splitFill(x, fac): Map<number, NeuroVec>;Defined in: src/stats/stats.ts:292
Split a NeuroVec by factor levels and fill a new NeuroVec.
Splits the input NeuroVec according to levels of a factor, creating a new NeuroVec for each level containing only the volumes from that level.
Parameters
x
The 4D data to split
fac
| Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike>
Factor array with length equal to number of volumes
Returns
Map<number, NeuroVec>
Dictionary mapping factor levels to NeuroVec objects