pyCGM2.Lib.emg.normalizedEMG#

pyCGM2.Lib.emg.normalizedEMG(DATA_PATH: str, analysis: Analysis, method: str = 'MeanMax', fromOtherAnalysis: Analysis | None = None, mvcSettings: Dict | None = None, **kwargs)#

Normalize EMG data in amplitude and update the analysis instance.

This function normalizes the amplitude of EMG signals in an analysis instance, using different normalization methods. It can also normalize based on another analysis instance or specified MVC settings.

Parameters:
  • DATA_PATH (str) – Folder path for EMG data.

  • analysis (Analysis) – An Analysis instance to be updated with normalized EMG data.

  • method (str) – Normalization method. Choices include ‘MeanMax’, ‘MaxMax’, and ‘MedianMax’. Defaults to ‘MeanMax’.

  • fromOtherAnalysis (Optional[Analysis]) – Use another Analysis instance for normalization. Defaults to None.

  • mvcSettings (Optional[Dict]) – MVC settings for normalization. Defaults to None.

Keyword Arguments:

forceEmgManager (pyCGM2.EMG.EmgManager) – Force the use of a specific EmgManager instance.

Returns:

pd.DataFrame – A DataFrame with labels and MVC thresholds.

Example:

emg.normalizedEMG(emgAnalysisInstance,
.................method="MeanMax",
.................fromOtherAnalysis=emgAnalysisInstancePreBloc)

The code normalized emg channels of the current analysis instance emgAnalysisInstance from the mean maximum values of an other analysis instance emgAnalysisInstancePreBloc