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 #35485 is a reply to message #35480] Thu, 19 June 2003 10:10 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Craig Markwardt wrote:
>
> 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.

I was assuming that the grid samples would consist of every
distinguishable floating point number within the domain over which you
want to find the maximum. In a certain practical sense, a computer
function is meaningfully defined only at those sample points. Still, the
computer function is usually meant to be a discrete approximation of an
abstract mathematical function; the abstract function might have a
maximum that isn't represented correctly in the discrete approximation.
[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:05 PDT 2025

Total time taken to generate the page: 0.00425 seconds