coevent#
- swordfish.function.coevent()#
Count the number of occurrences of two events within the specified intervals.
- Parameters:
event (Constant) – A vector indicating events.
eventTime (Constant) – A temporal or integer vector of the same length as event indicating the timestamps of events.
window (Constant) – A non-negative integer indicating the length of an interval.
orderSensitive (Constant, optional) – A Boolean value indicating whether the order of the two events matters. The default value is false.
- Returns:
A table with 3 columns: event1, event2 and hits. The values of event1 and event2 are based on the column event. Column hits is the number of occurrences of the event pair.
- Return type: