[Scilab-users] Peaks and positions

Dang, Christophe Christophe.Dang at sidel.com
Mon Jan 28 15:21:32 CET 2013


Hello, 

> If I have a vector , por example M= rand(418,1)

Just a question of vocabulary,
are you lookng for peaks with a given width, such as
or for "one-pixel" wide peaks,
which are sometimes refered to as "spikes"?

For spikes, you can use the cade given by Samuel,
just removing the "pC".

If the peaks have a given width,
you can locate the minima of the second derivative,
best after smoothing, e.g.

http://commons.wikimedia.org/wiki/File:Desommation_trois_pics_gaussiens_21pts.svg

(source code here : http://commons.wikimedia.org/wiki/File:Detection_pic_savitzky_Golay.svg#Scilab_source )

Best regards

-- 
Christophe Dang Ngoc Chan
Mechanical calculation engineer




This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.





More information about the users mailing list