Skip to content

Function: scaleSeries()

ts
function scaleSeries(vec, method?): Float32NeuroVec;

Defined in: src/stats/stats.ts:1094

Normalize every voxel's time-series in a NeuroVec.

Methods:

  • zscore: subtract mean, divide by SD
  • mean-center: subtract mean only
  • psc: percent signal change — (x - mean) / mean * 100

Parameters

vec

NeuroVec

The 4D data

method?

"zscore" | "mean-center" | "psc"

Normalization method

Returns

Float32NeuroVec

A new Float32NeuroVec with normalized data

Released under the MIT License.