Segmentation

This module contains classes for segmenting the trial data with different methods.

The module provides classes for segmenting the trial data based on gait events as well as a base class to implement additional methods.

class gaitalytics.segmentation.GaitEventsSegmentation(event_label: str = 'Foot Strike')

A class for segmenting the trial data based on gait events.

This class provides a method to segment the trial data based on gait events. It splits the trial data based on the event label and context.

segment(trial: Trial) TrialCycles

Segments the trial data based on gait events and contexts.

Args:

trial: The trial to be segmented.

Returns:

A new trial containing the all the cycles.

Raises:

ValueError: If the trial does not have events.