hsntools.timestamps.utils.convert_samples_to_time

hsntools.timestamps.utils.convert_samples_to_time(samples, fs, offset=0)[source]

Convert a set of samples to a set of corresponding timestamps.

Parameters:
samplesint or 1d array

Number of samples to create timestamps for.

fsint

Sampling rate.

offsetfloat, optional

Time value to offset time values by.

Returns:
timestamps1d array

Timestamps, in seconds.