EmgCoActivationFilter#

class pyCGM2.EMG.emgFilters.EmgCoActivationFilter(analysis: Analysis, context: str)#

Filter for computing co-activation index between two EMG signals.

This filter computes the co-activation index between two specified EMG signals for a given context, using a specified co-activation procedure.

Parameters:
  • analysis (Analysis) – A pyCGM2 analysis instance containing EMG data.

  • context (str) – Event context for the co-activation computation.

__init__(analysis: Analysis, context: str)#

Initializes the EmgCoActivationFilter with an analysis instance and context.

Methods

__init__(analysis, context)

Initializes the EmgCoActivationFilter with an analysis instance and context.

run()

Run the co-activation filter.

setCoactivationMethod(concreteCA)

Set the co-activation procedure for computing the co-activation index.

setEMG1(label)

Set the label of the first EMG signal for co-activation computation.

setEMG2(label)

Set the label of the second EMG signal for co-activation computation.

run()#

Run the co-activation filter.

Computes the co-activation index between the two specified EMG signals and updates the ‘coactivation’ section of the pyCGM2 Analysis instance with descriptive statistics of the results.

setCoactivationMethod(concreteCA: CoActivationProcedure)#

Set the co-activation procedure for computing the co-activation index.

Parameters:

concreteCA (CoActivationProcedure) – An instance of a CoActivationProcedure subclass for computing the co-activation index.

setEMG1(label: str)#

Set the label of the first EMG signal for co-activation computation.

Parameters:

label (str) – The label of the first EMG signal.

setEMG2(label: str)#

Set the label of the second EMG signal for co-activation computation.

Parameters:

label (str) – The label of the first EMG signal.