CrumpLab/MinervaTime

Event representation and non-events

Opened this issue · 1 comments

The current version is using MINERVA-AL style vectors. In this scheme, each event is a field of 1s when present, and 0s when absent. Event fields are concatenated to form a vector.

For example, position 1 to 10 are reserved for A events, 11 through 20 are for B events, 21 through 30 are for C events, and so on.

The timeline_to_vector() function needs to be rewritten so that the event fields for all possible events exist, and are set to 0 if the event is not presented.

timeline_to_vector() has been updated to include 0s for all non-events. All possible events are the ones named by row in the event_vector matrix. Events are concatenated as fields in the order they are named in the event_vector matrix. Events not listed in a trial have no duration, and are defined as 0s in their respective event fields.