filtEMG {musclesyneRgies}R Documentation

To filter raw EMG

Description

To filter raw EMG

Usage

filtEMG(
  x,
  demean = TRUE,
  rectif = "fullwave",
  HPf = 50,
  HPo = 4,
  LPf = 20,
  LPo = 4,
  min_sub = TRUE,
  ampl_norm = TRUE
)

Arguments

x

Object of class EMG with elements cycles and emg

demean

Logical: should EMG be demeaned?

rectif

Rectification type: "fullwave", "halfwave" or "none"

HPf

High-pass filter cut-off frequency, use 0 to exclude high-pass filtering

HPo

High-pass filter order

LPf

Low-pass filter cut-off frequency, use 0 to exclude Low-pass filtering

LPo

Low-pass filter order

min_sub

Logical: should the minimum be subtracted?

ampl_norm

Logical: should amplitude be normalised?

Details

Lists in the correct format can be created with the function rawdata(). The first column of each emg element must be time in the same units as those used for cycles (e.g., [s] or [ms]).

Value

Object of class EMG with elements:

References

Santuz, A., Ekizos, A., Janshen, L., Baltzopoulos, V. & Arampatzis, A. On the Methodological Implications of Extracting Muscle Synergies from Human Locomotion. Int. J. Neural Syst. 27, 1750007 (2017).

Examples

# Load some data
data("RAW_DATA")
# Filter raw EMG
filtered_EMG <- lapply(
  RAW_DATA,
  function(x) {
    filtEMG(x,
      HPf = 50,
      HPo = 4,
      LPf = 20,
      LPo = 4
    )
  }
)

[Package musclesyneRgies version 1.2.5 Index]