Skip to content

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

| NeuroVol | NeuroVec

The data to split

clusters

| NeuroVol | ClusteredNeuroVol

Volume containing integer cluster labels

Returns

ROIVol[]

List of ROI volumes, one for each cluster

Released under the MIT License.