emd.sift.stop_imf_energy#

emd.sift.stop_imf_energy(imf, residue, thresh=50, niters=None)[source]#

Compute energy change in IMF during a sift.

The energy in the IMFs are compared to the energy at the start of sifting. The sift terminates once this ratio reaches a predefined threshold.

Parameters:
imfndarray

IMF to be evaluated

residuendarray

Average of the upper and lower envelopes

threshfloat

Energy ratio threshold (default=50)

nitersint

Number of sift iterations currently completed

Returns:
bool

A flag indicating whether to stop siftingg

float

Energy difference in decibels

Notes

This function implements the energy-difference sift-stopping method defined in section 3.2.4 of https://doi.org/10.1016/j.ymssp.2007.11.028