octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49815] Mean returns NA for large amount of da


From: Rik
Subject: [Octave-bug-tracker] [bug #49815] Mean returns NA for large amount of data
Date: Fri, 9 Dec 2016 17:39:21 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #49815 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

This sounds like you have NA or NaN in the data.  The function max and min
discard NA.  The function mean cannot do so.  As an example,


octave:2> x = [1 NA 3];
octave:3> min (x)
ans =  1
octave:4> max (x)
ans =  3
octave:5> mean (x)
ans = NA
octave:6> isna (x)
ans =

  0  1  0


What does this check for NA values in t1 return?


any (isna (t1(:)))




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49815>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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