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

Home » Public Forums » archive » Re: Box-Whisker plots 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: Box-Whisker plots in IDL [message #55388 is a reply to message #55387] Mon, 20 August 2007 17:37 Go to previous messageGo to previous message
Marshall Perrin is currently offline  Marshall Perrin
Messages: 44
Registered: December 2005
Member
teich@atmsci.msrc.sunysb.edu <teich@atmsci.msrc.sunysb.edu> wrote:
> lower_ind=where(sorted_data lt median(sorted_data,/even))
> upper_ind=where(sorted_data gt median(sorted_data,/even))
> qtr_25th=median(sorted_data[lower_ind(0):lower_ind(n_element s(lower_ind)-1)],/
> even)
> qtr_75th=median(sorted_data[upper_ind(0):upper_ind(n_element s(upper_ind)-1)],/
> even)

Pardon me, but I think your calculation for the 25th and 75th percentiles here
is in deep trouble. lower_ind is a set of discrete and discontinuous indices,
so it's not correct to subscript sorted_data using the range construct
like that! You really want just

qtr_25th=median(sorted_data[lower_ind])
qtr_75th=median(sorted_data[upper_ind])

Cheers,

- Marshall
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: MODIS spectral radiance
Next Topic: How to read ASTER in ENVI?

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

Current Time: Sat Oct 11 10:14:37 PDT 2025

Total time taken to generate the page: 0.96159 seconds