octave-maintainers
[Top][All Lists]
Advanced

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

Re: regression in statistics() function


From: Rik
Subject: Re: regression in statistics() function
Date: Thu, 24 Jul 2014 11:14:36 -0700

On 07/24/2014 10:41 AM, address@hidden wrote:
Subject:
Fwd: [Pkg-octave-devel] Bug#755882: octave: statistics() does not work because of skewness and kurtosis
From:
Juan Pablo Carbajal <address@hidden>
Date:
07/24/2014 09:29 AM
To:
Octave Maintainers List <address@hidden>
List-Post:
<mailto:address@hidden>
Content-Transfer-Encoding:
quoted-printable
Precedence:
list
MIME-Version:
1.0
References:
<address@hidden>
In-Reply-To:
<address@hidden>
Message-ID:
<address@hidden>
Content-Type:
text/plain; charset=UTF-8
Message:
2

>From the debian packaging group.


---------- Forwarded message ----------
From: Francesco Potortì <address@hidden>
Date: Thu, Jul 24, 2014 at 9:49 AM
Subject: [Pkg-octave-devel] Bug#755882: octave: statistics() does not
work because of skewness and kurtosis
To: Debian Bug Tracking System <address@hidden>


Package: octave
Version: 3.8.1-3
Severity: normal

signature() and kurtosis() have changed their calling convntions, but
statistics.m has not been updated.  Here is a patch:

--- /usr/share/octave/3.8.1/m/statistics/base/statistics.m~
2014-05-10 11:24:38.000000000 +0200
+++ /usr/share/octave/3.8.1/m/statistics/base/statistics.m
2014-07-24 09:46:43.197972678 +0200
@@ -61,7 +61,7 @@ function stats = statistics (x, dim)
   emp_inv = quantile (x, [0.25; 0.5; 0.75], dim, 7);

   stats = cat (dim, min (x, [], dim), emp_inv, max (x, [], dim), mean (x, dim),
-               std (x, [], dim), skewness (x, dim), kurtosis (x, dim));
+               std (x, [], dim), skewness (x, [], dim), kurtosis (x, [], dim));

 endfunction

I made the change on the stable branch and also added a %!test to catch this.  See changeset http://hg.savannah.gnu.org/hgweb/octave/rev/ab5983dc0587.

It's best to put bug fixes on the Savannah tracker though so they don't get lost.

--Rik

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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