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

Home » Public Forums » archive » 5th & 95th Percentiles
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
5th & 95th Percentiles [message #58692] Wed, 13 February 2008 07:58 Go to next message
chloesharrocks is currently offline  chloesharrocks
Messages: 16
Registered: January 2008
Junior Member
Hello

I have an array of data which is not in order and need to find the 5th
& 95th percentile of this data. Is there an easy way to do this? I
will eventually need it to be extended to a for loop that works
through multiple arrays each of which have a different number of data
contained within them.

Thanks
ChloƩ

PS. I'm very inexperienced with IDL so the simpler the better!
Re: 5th & 95th Percentiles [message #90729 is a reply to message #58692] Tue, 07 April 2015 06:54 Go to previous message
atmospheric physics is currently offline  atmospheric physics
Messages: 121
Registered: June 2010
Senior Member
If 'a' is your data array, then you can compute the 5th and 95th percentile of the data array 'a' as given below:

IDL> a = 0.01*FINDGEN(101)
IDL> print, cgPercentiles(a, Percentiles=[0.05,0.95])

Hope this helps,
Best wishes,
Madhavan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: OPENR F77 SWAP_IF_LITTLE_ENDIAN
Next Topic: Rick Towler's idl programs (camera etc.)....

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

Current Time: Wed Oct 08 07:16:37 PDT 2025

Total time taken to generate the page: 0.00508 seconds