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

Home » Public Forums » archive » Re: Finding the Top Two Most Common Coordinates in a Multi-Dimensional 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: Finding the Top Two Most Common Coordinates in a Multi-Dimensional Array [message #61748 is a reply to message #61729] Tue, 29 July 2008 08:50 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Jul 29, 2:32 am, Brian Larsen <balar...@gmail.com> wrote:
> We do need some more information but this is just screaming for
> histogram.  Have a read throughhttp://www.dfanning.com/tips/histogram_tutorial.html
> .  Using histogram to see which x's are common you can step through
> the reverse_indices and see which y's are then common.  There is
> probably a more graceful way however.
>
> Cheers,
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physicshttp://people.bu.edu/balarsen/Home/IDL

In particular, if you're dealing with integers that don't span too big
a range, use HIST_2D and find the maximum element. If you've got
floats or a wide range, use UNIQ to turn each into an integer on a
small range first.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to Insert Small Image Into plot
Next Topic: heap_free fatal error

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

Current Time: Wed Oct 08 19:20:05 PDT 2025

Total time taken to generate the page: 0.00459 seconds