Function: splitClusters()
ts
function splitClusters(x, clusters): ROIVol[];Defined in: src/stats/stats.ts:194
Split data into ROIs based on cluster labels.
Creates a list of ROIVol objects, one for each cluster, containing the data values from the input volume/vector.
Parameters
x
The data to split
clusters
| NeuroVol | ClusteredNeuroVol
Volume containing integer cluster labels
Returns
ROIVol[]
List of ROI volumes, one for each cluster