phys2cvr.signal.filter_signal

phys2cvr.signal.filter_signal(data, tr, lowcut=0.02, highcut=0.04, order=9, axis=-1)[source]

Create a bandpass filter within lower and upper threshold, then filter.

Parameters:
datanp.ndarray

Data to filter.

trfloat

TR of functional files.

lowcutfloat

Low frequency threshold.

highcutfloat

High frequency threshold.

orderint

Butterworth filter order.

axisint

The axis along which the filter is applied.

Returns:
filt_datanp.ndarray

Bandpass-filtered data.