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

Home » Public Forums » archive » Re: MEDIAN and double?
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: MEDIAN and double? [message #30778 is a reply to message #30775] Fri, 17 May 2002 14:38 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I always thought that MEDIAN in Double is just

print, (the_data[sort(the_data)])[n_elements(the_data)/2]

but I may be wrong.
Cheers,
Pavel

Craig Markwardt wrote:
>
> Is it true that MEDIAN only works in single precision? I've tried to
> use a /DOUBLE keyword and it doesn't have one. This is kind of a
> stumper since I certainly do use MEDIAN on double precision
> data... :-)
>
> Craig
>
> --
> ------------------------------------------------------------ --------------
> Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
> Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
> ------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: sample mean and parametric mean?
Next Topic: Seg. Fault in IDL 5.5 (Linux)

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

Current Time: Thu Oct 09 23:55:43 PDT 2025

Total time taken to generate the page: 0.24049 seconds