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

Home » Public Forums » archive » Re: Function Maximum
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: Function Maximum [message #35486 is a reply to message #35485] Thu, 19 June 2003 09:50 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
James Kuyper <kuyper@saicmodis.com> writes:

> Benjamin Panter wrote:
> ...
>> An inelegant solution that might work is to evaluate the funtion in the
>> range of interest to as high a precision as is computationally possible
>> - and then run MAX() on it - but there must be a nicer way? I think this
>> method will fall down if there is a very sharp global max but a wider
>> local max
>>
>> Apologies for not being much of a mathematician and failing to provide a
>> better way!
>
> Actually, for an arbitrary function, the method you describe is the only
> method that is absolutely guaranteed to find the true maximum value. Any
> method that is faster than that one is based upon assumptions about the
> function, such as the assumption that it is reasonably smooth.

Even the brute force method described above assumes that the function
is smooth enough that it doesn't vary in between grid samples. For
example, a finite sum of delta functions at random positions would
probably be missed by any approach.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: recording macros
Next Topic: Return of the GIF?

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

Current Time: Wed Oct 08 19:27:17 PDT 2025

Total time taken to generate the page: 0.00414 seconds