Applies rectification to EMG signals, converting all values to positive.
Details
Rectification is a standard step in EMG processing that prepares the signal for envelope extraction. Full-wave rectification (absolute value) is most commonly used.
Examples
signal <- rnorm(1000)
rectified <- rectify(signal) # full-wave rectification
half_rect <- rectify(signal, method = "half_wave")