Proportion of a wave with signal above the limit
Arguments
- wave
A Wave object
- limit
Threshold above which to consider the signal
- output
If "unit" the duty cycle will be in the range 0-1. For a percentage use "percent".
- normalise
If TRUE the Wave is normalised using tuneR
Examples
wave <- tuneR::sine(2000)
dc <- dutyCycle(wave)
pc <- dutyCycle(wave, output="percent")