help-octave
[Top][All Lists]
Advanced

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

Re: Difference between NaN and NA?


From: David Bateman
Subject: Re: Difference between NaN and NA?
Date: Thu, 08 Apr 2010 21:17:14 +0200
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Jaroslav Hajek wrote:
In the current situation, NA's do no harm in Octave, but they're also
not much useful, because most functions ignore them, for instance,
mean ([1,2,3,NA]) is NA etc.
On the contrary, inserting checks for NA's everywhere is a good idea
either, because it will slow things down for everyone.

Now that Octave supports OOP, I could imagine an extension package
that provides arrays with missing values as objects,
each object keeping an array and a logical mask indicating missing
values. One could then support lots of operations with these arrays,
that behave "the correct way", instead of the poor support that is
there now.



Check the package

http://octave.sourceforge.net/nan/index.html

though it treats all NaN values as NA

D.



reply via email to

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