Skip to main content
← Lab

plateauwrap

confirmedupstream bugPython · PyEMDSystems & data structuresJuly 25, 2026

the question

Does PyEMD's default extrema finder correctly handle flat plateaus at interior and boundary positions?

what came out

PyEMD's default simple extrema finder guards the boundary plateau with debs[0]==1, dropping a genuine interior plateau while keeping a left-boundary one classified from the wrap-around last difference d[-1]. Two signals 1e-9 apart decompose into IMFs differing by 0.38. Fix: test debs[0]==0.

method & receipts

  • Result: confirmed
  • Reproducible one script re-runs the whole thing from scratch.
  • Tested — a correctness/benchmark suite ships alongside the code.

→ read the code and re-run it

github.com/v-code01/plateauwrap