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

Home » Public Forums » archive » Re: Percentile Function/Pro
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: Percentile Function/Pro [message #10865] Fri, 13 February 1998 00:00
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
David Mottershead replied:
> There is a web site by
> Martin Schultz / Harvard University / mgs@io.harvard.edu
> http://www-as.harvard.edu/people/staff/mgs/idl/idl_library.h tml
> with
> percentiles.pro

It is possible to make that routine a bit faster (and less
memory consuming) by doing

ix = sort(data)

instead of

; create a temporary copy of the data and sort
tmp = data
tmp = tmp(sort(tmp))

and then substituting

tmp(ind)

with

data(ix(ind))

Regards,

Stein Vidar
Re: Percentile Function/Pro [message #10867 is a reply to message #10865] Fri, 13 February 1998 00:00 Go to previous message
Theo Brauers is currently offline  Theo Brauers
Messages: 58
Registered: November 1997
Member
There is a web site by
Martin Schultz / Harvard University / mgs@io.harvard.edu
http://www-as.harvard.edu/people/staff/mgs/idl/idl_library.h tml
with
percentiles.pro

Best Theo

David Mottershead wrote:
>
> Does anyone have a nice function/pro or know of a nice way to compute
> the percentile on an array/vector? Is there a system function which does
> this?
>
> --
> Regards
>
> David
>
> ************************************************************ *******
> David Mottershead Phone: +61 2 9949 0278
> Manly Hydraulics Laboratory Fax: +61 2 9948 6185
> 110b King St, Manly Vale, 2093 email: dmottershead@mhl.nsw.gov.au
> SYDNEY, AUSTRALIA WWW: http://www.mhl.nsw.gov.au
> ************************************************************ *******

--
----------------------------------------------
Dr. Theo Brauers
Institut fuer Atmosphaerische Chemie (ICG-3)
Forschungszenrum Juelich
52425 JUELICH, Germany
Tel. +49-2461-61-6646 Fax. +49-2461-61-5346
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Histogram has wrong x-axis?
Next Topic: Compound widget help

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

Current Time: Fri Oct 10 16:19:21 PDT 2025

Total time taken to generate the page: 0.96778 seconds