apply_electrode_configs: Apply electrode configurations

View source: R/post_processing.r

apply_electrode_configsR Documentation

Apply electrode configurations

Description

Calculate combinations of different, monopolar electrode signals.

Usage

apply_electrode_configs(muscle_potentials, electrode_configs)

Arguments

muscle_potentials

A data.frame as usually created by a call to sum_muscle_contribs, containing the contributions of different muscles to the monopolar signals measured at each electrode.

electrode_configs

A list of vectors, where each vector should have as many elements as there are electrodes. The elements of the vector determine the weights given to the different monopolar signals for calculating the combined signal.

Details

This allows for the implementation of differential measurements, etc.

Value

A data.frame containing the contributions of the different muscles to the signals obtained using the different electrode configurations. These are still specified via the categorical variable electrode (instead of using "electrode_config", or something similar), in order to allow for easy usage of the same analysis functions.

Note

This implementation is probably highly inefficient in every regard.


ime-luebeck/semgsim documentation built on April 14, 2022, 11:02 p.m.