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

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

[Octave-bug-tracker] [bug #33523] Matlab compatibility issue with averag


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #33523] Matlab compatibility issue with averaging the 3rd dim of a 2-D array
Date: Fri, 22 Jan 2016 10:13:36 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #23, bug #33523 (project octave):

Rik, at long last here is the patch.

I was having a brain fade when I said that var and std should give NaN -- they
obviously give 0.  It is kurtosis and skewness that are NaN (since they
normalize by variance).

I've written a function "scripts/general/throw_if_not_natural.m" which reports
an error if its argument is not a positive real scalar integer.  I expect
there are other functions that could use it (for example, the previous
statistics/base functions forgot to check the argument was real), but I didn't
want to clutter this patch with those changes.

Thanks for all your patience in teaching me the coding standards, and revising
and applying my patches.

(file #36130)
    _______________________________________________________

Additional Item Attachment:

File name: bug_33523.cset                 Size:28 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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