frites.utils.downsample#

frites.utils.downsample(x, sfreq, down, axis='times', verbose=None)[source]#

Data downsampling for DataArray.

Parameters
xxr.DataArray

DataArray to down-sample.

sfreqpython:float

The sampling frequency

downpython:float

Down-sampling factor

axispython:int, python:str | -1

Dimension name describing the temporal dimension.

Returns
xxr.DataArray

The down-sampled DataArray