Skip to content
Prev 387646 / 398502 Next

local maxima positions in a vector with duplicated values

Maximum at the right endpoint is well accpted in both cases. If I am correst, I just append -Inf at the right end and then I apply what you wrote.

Thank you.

         (oo)
--oOO--( )--OOo--------------------------------------
Stefano Sofia PhD
Civil Protection - Marche Region - Italy
Meteo Section
Snow Section
Via del Colle Ameno 5
60126 Torrette di Ancona, Ancona (AN)
Uff: +39 071 806 7743
E-mail: stefano.sofia at regione.marche.it
---Oo---------oO----------------------------------------