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

Home » Public Forums » archive » Re: mean() function
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: mean() function [message #46935 is a reply to message #46934] Tue, 10 January 2006 15:07 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
biocpu@yahoo.com writes:

> The following looks very odd. Have any clues?
>
> IDL> y = fltarr(1008879)+35
> IDL> id = where(y ne 35, cc)
> IDL> print, cc
> 0
> ; so y is strictly 35.0 BUT
> IDL> print, mean(y)
> 35.5249
>
> IDL> print, mean(y(0:400000))
> 35.0000

Goodness! It is the 10th already and this is the first
"The Sky is Falling" post of the year. I was beginning
to wonder what was going on! :-)

You might want to have a look at this:

http://www.dfanning.com/math_tips/sky_is_falling.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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
Previous Topic: Re: reading a ninary file
Next Topic: mean() function

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

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

Total time taken to generate the page: 1.99804 seconds