by Spon <christoph.blau@[EMAIL PROTECTED]
>
Feb 13, 2008 at 09:04 AM
On Feb 13, 4:10 pm, Vince Hradil <hrad...@[EMAIL PROTECTED]
> wrote:
> On Feb 13, 9:58 am, chloesharro...@[EMAIL PROTECTED]
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=E9
>
> > 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_source/idl_li=
b/Mart...
pc5 =3D Data( (SORT(Data) ) (5 * N_ELEMENTS(Data) / 100) )
pc95 =3D 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