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

Home » Public Forums » archive » Q: Quantil calculation in IDL?
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: Q: Quantil calculation in IDL? [message #17527 is a reply to message #17379] Fri, 15 October 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Joerg Mosthaf (joerg.mosthaf@urz.uni-heidelberg.de) writes:

> I have been searching the help files and David Fannings great book, but I can't
> find a way to calculate 25%- and 75%-quantils. Unfortunately I don't know the
> english name for this so let me explain: A 75%-quantil is like the median, but
> with 75% instead of 50% i.e. the number in a data spread, that 75% of all
> data points are less or equal to. Is there a way to do this fast on an
> 256x256 array? I need it to cut off noise at a specific level and to get a
> reliable min/max value, not including data spikes. I am probably overlooking
> something very easy, but I just couldn't find it.

Well, I don't know the "IDL way" to do this (Stein
Vidar or someone else can fill us in on the details),
but the "get the thing done" way to do this goes something
like this:

1. Calculate the HISTOGRAM of the pixel distribution.
2. Do a "running sum" of the number of pixels in each
bin of the histogram until you exceed your target
amount. The value of that histogram bin will be
your quantil.

Sorry I can't be more explicit, but aside from not wanting
to embarrass myself, I have a plane to catch in about a half
hour. :-)

See you guys (and Rose, good to hear from *you* again!) in
a couple of weeks.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Velocity vectors on maps
Next Topic: DAY OF YEAR

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

Current Time: Wed Oct 08 19:19:18 PDT 2025

Total time taken to generate the page: 0.00430 seconds