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

Home » Public Forums » archive » Re: 5th & 95th Percentiles
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: 5th & 95th Percentiles [message #58688 is a reply to message #58677] Wed, 13 February 2008 09:04 Go to previous messageGo to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Feb 13, 4:10 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> On Feb 13, 9:58 am, chloesharro...@gmail.com wrote:
>
>> 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!
>
> I use this:http://www.fz-juelich.de/icg/icg-1/idl_icglib/idl_sourc e/idl_lib/Mart...

pc5 = Data( (SORT(Data) ) (5 * N_ELEMENTS(Data) / 100) )
pc95 = Data( (SORT(Data) ) (95 * N_ELEMENTS(Data) / 100) )

This is blatant thievery on my part from an old newsgroup thread.
Try searching the old posts for Stein Vidar to whom all credit should
go! :-)

Good luck!
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: workbench project rename: bug?
Next Topic: Re: N_ELEMENTS gt 0

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

Current Time: Sat Oct 11 12:32:22 PDT 2025

Total time taken to generate the page: 1.04008 seconds