phys2cvr.signal.resample_signal_samples

phys2cvr.signal.resample_signal_samples(ts, samples, axis=-1)[source]

Resample timeseries based on desired number of samples.

Parameters:
tsnp.ndarray

The timeseries to be resampled

samplesint

Desired number of samples.

axisint

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

Returns:
numpy.ndarray

Resampled timeseries.