-
Notifications
You must be signed in to change notification settings - Fork 0
signal.EnvelopeDetection.Function.generateSignalEnvelope
Christian d'Heureuse edited this page Jun 7, 2026
·
2 revisions
dsp-collection / signal/EnvelopeDetection / generateSignalEnvelope
function generateSignalEnvelope(
signal,
windowWidthDc,
windowWidthEnvelope): Float64Array;Defined in: signal/EnvelopeDetection.ts:27
A simple signal envelope generator using moving averages.
The following steps are performed to generate the signal envelope:
- The DC level of the window is calculated using a simple moving average.
- The signal values are subtracted from the DC values and rectified.
- A second simple moving average is used to calculate the envelope amplitude values.
ArrayLike<number>
The input signal.
number
Window width for moving average for calculating the DC component.
number
Window width for moving average for envelope generation.
Float64Array
The envelope of the signal.