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

Home » Public Forums » archive » Re: nearest number
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: nearest number [message #49611 is a reply to message #49610] Mon, 07 August 2006 06:18 Go to previous messageGo to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
bressert@gmail.com wrote:
> Hello,
>
> Im writing a bit of IDL code where a large array of floating numbers is
> compared to one floating number. The aim of comparing the array to the
> floating number to find which the values "closest" match.

IDL provides the VALUE_LOCATE function for this purpose. The array must
be monotonic, but of course you can sort it if necessary.

Benjamin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing a structure containing empty strings
Next Topic: Re: file_lines and expand path

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

Current Time: Fri Oct 10 18:44:38 PDT 2025

Total time taken to generate the page: 2.48148 seconds