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:
- ts
np.ndarray The timeseries to be resampled.
- freq1
float Current frequency.
- freq2
float Desired frequency.
- axis
int The axis (dimension) over which the interpolation should happen - by default it’s -1, i.e. the last dimension.
- ts
- Returns:
numpy.ndarrayResampled timeseries.