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

Home » Public Forums » archive » Re: 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 #55318 is a reply to message #55314] Sun, 12 August 2007 17:48 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Aug 12, 8:41 am, ATKT <ankur.trigun...@gmail.com> wrote:
> Can somebody tell what exactly dist function is doing in IDL
> e.g x=dist(2,2)
> 0.000000 1.00000
> 1.00000 1.41421
> What is the meaning of this ouput
> x=dist(4,4)
> 0.000000 1.00000 2.00000 1.00000
> 1.00000 1.41421 2.23607 1.41421
> 2.00000 2.23607 2.82843 2.23607
> 1.00000 1.41421 2.23607 1.41421
>
> I am unable to understand the out put which is being generated.

The online help says this:

"The DIST function creates an array in which each array element value
is proportional to its frequency. This array may be used for a variety
of purposes, including frequency-domain filtering."

But I think about it in terms of plain Euclidean distance. Each array
element's value is the shortest distance to (0, 0) allowing for
wrapping around the edges. This has applications in creating kernels
for image processing filters (and is simple dataset for examples).

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: controlling widget layout
Next Topic: xyouts for iPlot?

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

Current Time: Wed Oct 08 21:15:02 PDT 2025

Total time taken to generate the page: 2.07430 seconds