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 #68778 is a reply to message #68776] Fri, 04 December 2009 04:12 Go to previous messageGo to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior 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.

You could apply a boxcar filter (e.g. median) with a width chosen to
exclude your interpretation of noise in the signal (or define your
notion of local), then search for points with adjacent lesser values
(possibly beyond adjacent equal values).

Greg
[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: Fri Oct 10 15:00:30 PDT 2025

Total time taken to generate the page: 1.04095 seconds