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

Home » Public Forums » archive » Problem with dist function in IDL
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: Problem with dist function in IDL [message #55651 is a reply to message #55319] Tue, 28 August 2007 13:10 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Aug 28, 12:26 pm, David Fanning <n...@dfanning.com> wrote:
> I was just having a look at the BUTTERWORTH filter code in the IDL
> library, and I notice that the ITTVIS programmer who wrote this
> function uses the double FOR loop method to create the distance
> function, rather than DIST.
>
> What do you suppose he knows that we don't!?

Well, the BUTTERWORTH code has to handle 1, 2, or 3-dimensional
distance arrays, whereas DIST handles only the 2-dimensional case. So
BUTTERWORTH could use DIST for only one of the three cases, so the
developer decided not to use it? In any case, DIST is more efficient
than BUTTERWORTH for the 2-dimensional case.

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Matrix operations with IDL: Avoiding for loops
Next Topic: Lack of KeyMods parameter in the ::MouseUp function call -> Feature request

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

Current Time: Wed Oct 08 13:54:38 PDT 2025

Total time taken to generate the page: 0.00372 seconds