https://gitlab.gbar.dtu.dk/heliaib/PUPILS-preprocessing-pipeline
Tip revision: 222e578ec8659484520836c194f88738f51d58d9 authored by heliaib on 22 February 2022, 20:27:11 UTC
Adjust indexing for multiple blinks end of the trace
Adjust indexing for multiple blinks end of the trace
Tip revision: 222e578
checkSampleSpacing.m
function [out] = checkSampleSpacing(dataframe)
% This function checks that there is no missing data points in the input
% data. In case of missing data points it returns a 0, otherwise the
% function ends returning a 1.
checksum = sum(abs(diff(diff(dataframe(:, 1)))));
if checksum == 0
out = 1; % Samples are equally spaced
else
out = 0; % Samples are not equally spaced (missing data)
end
end