Skip to contents

Counts adjacent sign changes in diff(x) whose absolute slope difference exceeds threshold. Used as a fatigue/load proxy in sEMG analysis.

Usage

morie_dsp_turns_count(x, threshold = 0)

Arguments

x

Numeric vector.

threshold

Slope-difference threshold. Default 0.

Value

Integer count.

References

Rangayyan & Krishnan (2015), Ch. 5, sec. 5.4; Willison (1964).