phys2cvr.signal.resample_signal_freqs

phys2cvr.signal.resample_signal_freqs(ts, freq1, freq2, axis=-1)[source]

Resample timeseries based on current and desired frequency.

Parameters:
tsnp.ndarray

The timeseries to be resampled.

freq1float

Current frequency.

freq2float

Desired frequency.

axisint

The axis (dimension) over which the interpolation should happen - by default it’s -1, i.e. the last dimension.

Returns:
numpy.ndarray

Resampled timeseries.