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:
timeseriesnumpy.ndarray or dict of numpy.ndarray

Adictionary of (or a single) 2- or 3-D matrix with timeseries along axis 1.

meanbool, optional

If timeseries is 3D and this is True, return the average FC along the last axis.

Returns:
numpy.ndarray or dict of numpy.ndarray

Functional Connectivity of the given timeseries input.