Events
This module contains classes for checking and detecting events in a trial.
- class gaitalytics.events.MarkerEventDetection(configs: MappingConfigs, **kwargs)
A class for detecting events using marker data.
This class provides a method to detect events using marker data in a trial. The algorithm is based on the paper by Zeni et al. (2008).
- class gaitalytics.events.SequenceEventChecker
A class for checking the sequence of events in a trial.
This class provides a method to check the sequence of events in a trial. It checks the sequence of event labels and contexts.
- check_events(events: DataFrame) tuple[bool, list | None]
Checks the sequence of events in the trial.
In a normal gait cycle, the sequence of events is as follows: 1. Foot Strike (right) 2. Foot Off (left) 3. Foot Strike (left) 4. Foot Off (right)
- Args:
events: The events to be checked.
- Returns:
bool: True if the sequence is correct, False otherwise. list | None: A list time slice of incorrect sequence, or None if the sequence is correct.