nigsp.operations.metrics.functional_connectivity¶
- nigsp.operations.metrics.functional_connectivity(timeseries, mean=False)[source]¶
Compute Functional Connectivity of timeseries.
It is assumed that time is encoded in the second dimension (axis 1), e.g. for 90 voxels and 300 timepoints, shape is [90, 300].
- Parameters:
- timeseries
numpy.ndarray
ordict
ofnumpy.ndarray
Adictionary of (or a single) 2- or 3-D matrix with timeseries along axis 1.
- mean
bool
, optional If timeseries is 3D and this is True, return the average FC along the last axis.
- timeseries
- Returns:
numpy.ndarray
ordict
ofnumpy.ndarray
Functional Connectivity of the given timeseries input.