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 
Return to the default flat view Create a new topic Submit Reply
Re: Percentile Function/Pro [message #10865] Fri, 13 February 1998 00:00 Go to previous message
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
[Message index]
 
Read Message
Read Message
Previous Topic: Histogram has wrong x-axis?
Next Topic: Compound widget help

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

Current Time: Sat Oct 11 07:23:52 PDT 2025

Total time taken to generate the page: 0.79940 seconds