GaitCycle#
- class pyCGM2.Processing.cycle.GaitCycle(gaitAcq: btkAcquisition, startFrame: int, endFrame: int, context: str, enableFlag: bool = True)#
GaitCycle class constructor, inherited from Cycle. Defines a gait cycle.
- Parameters:
gaitAcq (btk.btkAcquisition) – An acquisition instance for the gait cycle.
startFrame (int) – Start frame of the gait cycle.
endFrame (int) – End frame of the gait cycle.
context (str) – Context of the gait cycle (e.g., ‘Left’, ‘Right’).
enableFlag (bool) – Flag to indicate if the cycle will be used in further computation. Defaults to True.
Notes
By default, X0 and Y0 are the longitudinal and lateral global axes respectively.
GaitCycle construction computes spatio-temporal parameters automatically.
Spatio-temporal parameters include ‘duration’, ‘cadence’, ‘stanceDuration’, ‘stepDuration’, etc.
- __init__(gaitAcq: btkAcquisition, startFrame: int, endFrame: int, context: str, enableFlag: bool = True)#
Methods
__init__
(gaitAcq, startFrame, endFrame, context)addDiscreteData
(label, value, instant)getAnalogTimeSequenceData
(analogLabel)Get analog data of the cycle.
getAnalogTimeSequenceDataNormalized
(analogLabel)Get time-normalized analog data of the cycle.
getEvents
([context])Get all events of the cycle.
getPointTimeSequenceData
(pointLabel)Get point data of the cycle.
getPointTimeSequenceDataNormalized
(pointLabel)Get Time-normalized a point label.
getSpatioTemporalParameter
(label)Return a spatio-temporal parameter.
setEnableFlag
(flag)Enable or disable the cycle.
Attributes
STP_LABELS
- getSpatioTemporalParameter(label: str)#
Return a spatio-temporal parameter.
- Parameters:
label (str) – Label of the desired spatio-temporal parameter.
- Returns:
float – Value of the specified spatio-temporal parameter.