frites.utils.downsample#
- frites.utils.downsample(x, sfreq, down, axis='times', verbose=None)[source]#
Data downsampling for DataArray.
- Parameters
- x
xr.DataArray
DataArray to down-sample.
- sfreq
python:float
The sampling frequency
- down
python:float
Down-sampling factor
- axis
python:int
,python:str
| -1 Dimension name describing the temporal dimension.
- x
- Returns
- x
xr.DataArray
The down-sampled DataArray
- x