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: Jaroslav Hajek
Subject: Re: Difference between NaN and NA?
Date: Fri, 9 Apr 2010 06:46:25 +0200

On Thu, Apr 8, 2010 at 9:17 PM, David Bateman <address@hidden> wrote:
> 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.
>
>

Yes, I know about this. I'm sure some code could be taken from here.

-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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