Re: manipulating structures [message #53352 is a reply to message #53350] |
Sun, 08 April 2007 18:45   |
rkombiyil
Messages: 59 Registered: March 2006
|
Member |
|
|
On Apr 9, 9:17 am, David Fanning <n...@dfanning.com> wrote:
> Lajos = writes:
>> You are summing an empty array, if the /NaN keyword (= discard NaNs) was
>> set. So, what is the sum of an empty array: 0 or Nan? :-)
>
> Well, whatever it is, it probably ought be to the same
> as MEAN, don't you think?
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
I agree with Dr.Fanning completely. Consistency should be maintained
in such situations. Else, it will lead to inaccurate results and the
end user will have to spent much time trying to debug, when such
inconsistent behaviour is "not" obvious!
Thanks,
/rk
|
|
|