check_for_sampleloss#
- check_for_sampleloss(timestamps: ndarray) ndarray [source]#
Check for sample loss.
Check whether timestamps are equidistantly spaced, it not, it is an indication that sampleloss has occurred whilst recording the demodulator data.
This function assumes that the timestamps originate from continuously saved demodulator data, during which the demodulator sampling rate was not changed.
- Parameters:
timestamp – a 1-dimensional array containing demodulator timestamps
timestamps (ndarray) –
- Returns:
A 1-dimensional array indicating the indices in timestamp where sampleloss has occurred. An empty array is returned in no sampleloss was present.
- Return type:
ndarray