Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: NULL as the empty string Date: Thu, 14 Dec 2017 17:26:01 -0800 Organization: None to speak of Lines: 21 Message-ID: References: <0f96b837-7b9a-435f-81ec-8bbc8d2f928b@googlegroups.com> <200dbc56-510f-48ac-b9b4-64cb421934d3@googlegroups.com> <780aa089-aa70-4232-9838-499bae843bf1@googlegroups.com> <1be1dc23-3a06-440e-b9a5-6a90aba5bd3b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="3036b614cb3ede1b20843364e08f1c75"; logging-data="26815"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f8wyMS/AAMiFk2Qoi6a61" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:0rDCOk5nLJnXjlwR0BJ8DE22SVo= sha1:UNGWTfHQOeYU9besYoVv+8b1bVc= Xref: csiph.com comp.lang.c:124344 herrmannsfeldt@gmail.com writes: > On Wednesday, December 13, 2017 at 9:13:10 AM UTC-8, Keith Thompson wrote: > > (snip) > >> The mean is by definition the sum divided by the count. *If* the >> specification calls for NaNs to be ignored, then they should be >> ignored whether you're computing a sum or a mean. (If all entries >> are NaNs, then I suppose the sum would be 0 and the mean would >> be undefined.) > > And the mean of zero values is? Undefined, unless you're working with a specification that says otherwise. (Were you expecting something else?) -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"