phys2cvr.signal.resample_signal_samples¶
- phys2cvr.signal.resample_signal_samples(ts, samples, axis=-1)[source]¶
Resample timeseries based on desired number of samples.
- Parameters:
- ts
np.ndarray The timeseries to be resampled
- samples
int Desired number of samples.
- axis
int The axis (dimension) over which the interpolation should be applied - by default it’s -1, i.e., the last dimension.
- ts
- Returns:
numpy.ndarrayResampled timeseries.