https://gitlab.gbar.dtu.dk/heliaib/PUPILS-preprocessing-pipeline
Tip revision: 87ac74da119003f5d30ee5e4b72318c765c2ff5b authored by Helia Relano Iborra on 30 January 2020, 12:24:47 UTC
Remove conversion to m
Remove conversion to m
Tip revision: 87ac74d
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