Time Normalisation

Gaitalytics provides functionalities to time normalise the segmented data (gaitalytics.api.time_normalise_trial()).
from gaitalytics import api

config = api.load_config("./config.yaml")
trial = api.load_c3d_trial("./example_with_events.c3d", config)
segmented_trial = api.segment_trial(trial)
normalised_trial = api.time_normalise_trial(segmented_trial)

The function returns a gaitalytics.model.TrialCycles object. It contains a dictionary with the cycles number as key and a gaitalytics.model.Trial object as value, which are normalised to 100 frames.

Warning

Using the parameter n_frames the length to which the time series should be interpolated can be set. The default value is 100 frames.