help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing values


From: Teemu Ikonen
Subject: Missing values
Date: Fri, 8 Oct 2004 10:52:28 -0500
User-agent: Mutt/1.4.1i

Hi all,

Support for missing double values (NA) was added to Octave two years ago.
There was talk of making functions like sum, mean, etc. to support them, but
e.g. sum([1,NA]) still returns NA. 
(see http://www.octave.org/mailing-lists/help-octave/2002/581)

Also, min([1,NA]) returns 1, but so does min([1,NaN]), which would imply
that NA = NaN in the current implementation. Is this because no one has
fixed the code, or is it so by design?

Octave-forge includes functions nanmax, nanmean etc. which ignore NaN as
they should, but return NA on any vector containing NA. Should they be made
to also ignore NA?

Teemu



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]