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

Home » Public Forums » archive » Optimisation in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Optimisation in IDL? [message #41215] Mon, 18 October 2004 07:13 Go to next message
helaha is currently offline  helaha
Messages: 26
Registered: March 2004
Junior Member
I have following optimisation problem and want to ask if anybody could
give me some hints for implementing it in IDL.
There is a function, depending on given x,y and g values (simply the
x,y values of 2D image pixels and their grey levels g).
I have to find the maximum of the following function and the constants
a and b should be calculated:
MAX(Sum1 (Sum2 (Dirac(log(g(x,y) - ax -by -g))))),
where Sum1 is the sum over all possible grey values, Sum2 is the sum
over all possible x,y values and Dirac is the dirac function. The
function itself is not the problem, rather the algorithm for finding
the right constants a and b.

Thanks for any input,
Helmut Ahammer
Re: Optimisation in IDL? [message #41413 is a reply to message #41215] Sat, 23 October 2004 15:34 Go to previous message
luxx is currently offline  luxx
Messages: 3
Registered: October 2004
Junior Member
Hi,

I would use Craig Markwardt�s MPFIT routine:

http://cow.physics.wisc.edu/~craigm/idl/fitting.html

--
luxx.

"Ahammer Helmut" <helaha@gmx.net> schrieb im Newsbeitrag
news:f2c7de6c.0410180613.557e31a9@posting.google.com...
> I have following optimisation problem and want to ask if anybody could
> give me some hints for implementing it in IDL.
> There is a function, depending on given x,y and g values (simply the
> x,y values of 2D image pixels and their grey levels g).
> I have to find the maximum of the following function and the constants
> a and b should be calculated:
> MAX(Sum1 (Sum2 (Dirac(log(g(x,y) - ax -by -g))))),
> where Sum1 is the sum over all possible grey values, Sum2 is the sum
> over all possible x,y values and Dirac is the dirac function. The
> function itself is not the problem, rather the algorithm for finding
> the right constants a and b.
>
> Thanks for any input,
> Helmut Ahammer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Virtual Machine
Next Topic: Plotting 'continents' in object graphics...

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

Current Time: Sat Oct 11 06:48:00 PDT 2025

Total time taken to generate the page: 0.47778 seconds