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

Home » Public Forums » archive » Re: Find minimums in an array...
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: Find minimums in an array... [message #32535 is a reply to message #32532] Wed, 16 October 2002 11:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Filipe (engpcris@livjm.ac.uk) writes:

> I'm looking for a fonction or an algorithm who could find the X
> minumun values in a array without having to use Sort (for a time
> reason) or Min (updating the array everytime)
>
> For Example in a Array of 1000 elements I want to find the 10 smallest
> values.
>
> Do you know any quick how to perfome it? (as I need to do this
> operation many times in a loop)

Oh, my gosh! I believe HISTOGRAM can be used to solve
this problem!!!

http:/www.dfanning.com/tips/histogram_tutorial.html

Cheers,

David

P.S. Let's just say that *this* is what enlightenment
feels like! :-)

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: up/down arrows not working in IDLDE
Next Topic: up/down arrows not working in IDLDE

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

Current Time: Sat Oct 11 03:37:14 PDT 2025

Total time taken to generate the page: 0.16135 seconds