in reply to Re: Finding local maxima/minima in noisy, pediodic data
in thread Finding local maxima/minima in noisy, pediodic data
I couldn't run your program because I don't have the GD::Graph module (I couldn't install it and don't have time right now to fix it), but I took the core loop of your program and adapted it. Well, it is not satisfactory.
It incorrectly labels some extrema as true ones but also misses some of them.
It turns out that my test data generator was too simple.
Here is a real example.