laszukdawid/PyEMD

The result of eemd decomposition

Closed this issue · 2 comments

Hello, I would like to ask about this eemd decomposition. The result of eemd decomposition is different each time. If I want to get the same imf component result, what parameters should be set?

Hi @wang1xu,

The result of EEMD is different each time by design. Or, rather it is the expected consequence of the design.

Every time you do EEMD you do multiple EMD on a signal with noise and that noise is noise so it is going to be different.

To make the decomposition reproducible one needs to set a seed for the random number generator. In case of EEMD you need to pass any integer to noise_seed method (doc).

A short snippet

from PyEMD import EEMD

seed = 32167  # Any number is fine. Decomposition should be the same for the same number.
eemd = EEMD()
eemd.noise_seed(seed)

Closing issue as there wasn't any reply for a while.