Julia interface to the extrema finding algorithm Persistence1D (public domain).
Pkg.clone("https://github.com/jagot/Persistence1D.jl.git")
Pkg.build("Persistence1D")
Find persistent extrema:
Reconstruct smooth function with persistent features preserved: