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

Home » Public Forums » archive » Re: Finding all max/min of a graph
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: Finding all max/min of a graph [message #21701 is a reply to message #21697] Mon, 11 September 2000 17:25 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
wmc@bas.ac.uk wrote:
>
> This may or may not be a FAQ but my rather feeble search failed to
> find it...
>
> I have a graph with about 10 (local) max/mins, I'd like to find them
> all, objectively. What do I do?
>

We had a lengthy debate concerning just this topic a few months ago. The topic
was expanded to include n point extrema, but for the simple case of a point
either less than or greater than both of it's nearest neighbors, you could try:

wh=where(d ne median(d,3))

JD

--
J.D. Smith /*\ WORK: (607) 255-6263
Cornell University Dept. of Astronomy \*/ (607) 255-5842
304 Space Sciences Bldg. /*\ FAX: (607) 255-5875
Ithaca, NY 14853 \*/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Bootstrapping / Resampling
Next Topic: Axis labels

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

Current Time: Thu Oct 09 20:44:56 PDT 2025

Total time taken to generate the page: 1.35968 seconds