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 
Return to the default flat view Create a new topic Submit Reply
Re: Source for reverse_indices [message #45108] Fri, 12 August 2005 13:36 Go to previous message
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
[Message index]
 
Read Message
Read Message
Previous Topic: Definition of skewness
Next Topic: Re: Definition of skewness

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

Current Time: Thu Oct 09 13:15:56 PDT 2025

Total time taken to generate the page: 1.35963 seconds