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

Home » Public Forums » archive » Re: Source for reverse_indices
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Source for reverse_indices [message #45108] Fri, 12 August 2005 13:36
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
the_cacc@hotmail.com wrote:

> I've been looking on the web for a C (or any!) code of histogram that
> does the same thing as reverse indices. Without luck, I might add. Does
> anyone know where I can find it?

In idl it would be

y=findgen(100)
n=n_elements(y)
idx=max(y)-indgen(n)
reverse=y[idx]

cheers
Reiamr
Re: Source for reverse_indices [message #45129 is a reply to message #45108] Thu, 11 August 2005 05:35 Go to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Joel Gales has implemented HISTOGRAM
including REVERSE_INDICES for GDL:

http://sourceforge.net/projects/gnudatalanguage

the relevant code if in src/gsl_fun.cpp
Of course this is within the GDL framework but
maybe it helps you to get the idea.

Cheers,
marc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Definition of skewness
Next Topic: Re: Definition of skewness

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

Current Time: Wed Oct 08 13:43:46 PDT 2025

Total time taken to generate the page: 0.00549 seconds