comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How 2 extract LOCAL Max?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How 2 extract LOCAL Max? [message #68779 is a reply to message #68778] Fri, 04 December 2009 03:59 Go to previous messageGo to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
Dave_Poreh wrote:
> Folks
> I have a signal with few peaks (local maximum). I need to extract the
> x and y of these Peaks programmatically. The input data is an array
> whit 2 column (x&y). What is the best way to do this?

"best" is a loaded word...

/A/ way is to move along the array comparing values to their neighbours
and see if things are going up/down, but you need to be quite careful
about thresholds that will constitute a real peak (i.e., there can be
plenty of false peak-lets caused by noise) and account for the fact that
the signal might not really start to drop for several x increments.

If you find a peak then x will be whatever the count increment is and y
will be whatever the value is.

Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ITT VIS at the 2009 AGU Fall Meeting
Next Topic: IDL book

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 22 18:19:35 PDT 2025

Total time taken to generate the page: 1.02087 seconds