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

Home » Public Forums » archive » Re: An algorithm puzzle
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: An algorithm puzzle [message #60778] Sat, 14 June 2008 10:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jelle writes:

> David: That is not really fair: I am in the wrong timezone for a 10
> sec reply. Anyway.. Size would be european XL, probably a US L?
>
> I think this should do it:
> d = MORPH_DISTANCE(P)
>
> (Or, if I have my foreground / background wrong)
> d = MORPH_DISTANCE(P, /background)
>
> You will have to decide how distance is calculated using the
> NEIGHBOR_SAMPLING keyword, I think you are after 3, which is
> approximate euclidian distance.
> d = MORPH_DISTANCE(P, neighbor_sampling=3)

Well, I guess in setting up the contest we overlooked who
was going to judge the darn thing. :-(

I suppose we are going to have to rely on Y.T. to tell us
which of these solutions worked and how fast they were.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JBIU utilities - release 1.0
Next Topic: AVI file with RLE compression

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

Current Time: Wed Oct 08 13:32:17 PDT 2025

Total time taken to generate the page: 0.00617 seconds