bachlab / PsPM

A matlab suite for Psycho-Physiological Modelling
GNU General Public License v3.0
45 stars 11 forks source link

pspm_interp1 needs to consider data without valid values #500

Closed teddychao closed 1 year ago

teddychao commented 1 year ago

Feature Description

pspm_interp1, standing for first order interpolation, performs interpolation for PsPM data based on the valid non-NaNs, which is based on the assumption that PsPM data always contain at least 1 valid non-NaN. However, this is not guaranteed in our test datasets. It is possible that no valid values are detected and users will need some messages about what data should be skipped as interpolation isn't possible. To do this, it is necessary to add data checking in pspm_intep1.