refine_gs#

mobgap.initial_contacts.refine_gs(
ic_list: DataFrame,
) tuple[DataFrame, DataFrame][source]#

Get the start and end values of a refined gait sequence that starts at the first and ends at the last IC.

Parameters:
ic_list

The original ic_list relative to the original gait sequence

Returns:
refined_gs_list

A gait sequence list with a single entry that corresponds to the start and the end of the new refined gait sequence relative to the original gait sequence.

refined_ic_list

The IC list with all IC values relative to the new refined gait sequence. This means that the first IC should have the value 0. The new ic-list also has a multi-index with the gs_id of the refined GS as first level.

Notes

We handle edegecase as follows:

  • A GS with just a single IC: In this case, we will have a GS with a single entry that starts at the first IC and ends at the first IC + 1.

  • A GS with no ICs: In this case, we will have a GS of length 0 with the start and the end both beeing the start of the original GS.

As both of these edegecases usually will not result in meaningful downstream analysis, we would recommend to check for these cases and exclude them from the analysis, if they occur.

Examples using mobgap.initial_contacts.refine_gs#

The Mobilise-D pipeline: Step-by-Step Breakdown

The Mobilise-D pipeline: Step-by-Step Breakdown

Cadence Evaluation

Cadence Evaluation

Stride Length Evaluation

Stride Length Evaluation