bachlab / PsPM

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

Generalise and rename pspm_time2index and change input logic #608

Closed dominikbach closed 8 months ago

dominikbach commented 10 months ago

Summary

There are three ways of defining a data index for time series data in PsPM: (a) "seconds" (i.e. time from first sample), (b) "samples" (i.e. in terms of the sample), and (c) "markers" (i.e. by way of a separate marker channel).

This function should convert options (a) and (c) to (b).

It should then be renamed to pspm_get_sample_index (or pspm_get_sample?)