resurfemg.preprocessing.envelope module

Copyright 2022 Netherlands eScience Center and University of Twente Licensed under the Apache License, version 2.0. See LICENSE for details.

This file contains functions extract the envelopes from EMG arrays.

resurfemg.preprocessing.envelope.full_rolling_arv(emg_clean, window_length)

This function computes an average rectified value envelope over an array emg_clean. ————————————————————————— :param emg_clean: Samples from the EMG :type emg_clean: ~numpy.ndarray :param window_length: Length of the sample use as window for function :type window_length: int

Returns emg_arv:

The average rectified value EMG sample data

Rtype emg_arv:

~numpy.ndarray[float]

resurfemg.preprocessing.envelope.full_rolling_rms(emg_clean, window_length)

This function computes a root mean squared envelope over an array cleaned (filtered and ECG eliminated) EMG. ————————————————————————— :param emg_clean: Samples from the EMG :type emg_clean: ~numpy.ndarray :param window_length: Length of the sample use as window for function :type window_length: int

Returns emg_rms:

The root-mean-squared EMG sample data

Rtype emg_rms:

~numpy.ndarray[float]

resurfemg.preprocessing.envelope.naive_rolling_rms(emg_clean, window_length)

This function computes a root mean squared envelope over an array emg_clean. ————————————————————————— :param emg_clean: Samples from the EMG :type emg_clean: ~numpy.ndarray :param window_length: Length of the sample use as window for function :type window_length: int

Returns emg_rms:

: The root-mean-squared EMG sample data

Rtype emg_rms:

~numpy.ndarray[float]