[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43038] 'mean' fails when operating on trailin
From: |
Markus Bergholz |
Subject: |
[Octave-bug-tracker] [bug #43038] 'mean' fails when operating on trailing singleton dimension |
Date: |
Sun, 21 Sep 2014 05:54:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 |
Follow-up Comment #7, bug #43038 (project octave):
I've reviewed and reworked sevaral statistic functions (center, iqr, kurtosis,
mean, meansq, median, mode) and attached a patch.
There are some functions left with exactly the same if clause. But I even
don't know what they are exactly doing, so it's not easy to update the error
and assert parts. They are still untouched. This are the files with their
issueing line.
histc.m:77: if (!(isscalar (dim) && dim == fix (dim))
moment.m:164: if (!(isscalar (dim) && dim == fix (dim)) ||
prctile.m:65: if (!(isscalar (dim) && dim == fix (dim))
quantile.m:131: if (!(isscalar (dim) && dim == fix (dim))
ranks.m:50: if (!(isscalar (dim) && dim == fix (dim))
run_count.m:53: if (!(isscalar (dim) && dim == fix (dim))
skewness.m:105: if (!(isscalar (dim) && dim == fix (dim)) || !(1 <= dim &&
dim <= nd))
statistics.m:51: if (!(isscalar (dim) && dim == fix (dim))
std.m:87: if (!(isscalar (dim) && dim == fix (dim))
var.m:87: if (!(isscalar (dim) && dim == fix (dim))
zscore.m:66: if (!(isscalar (dim) && dim == fix (dim))
(file #32152)
_______________________________________________________
Additional Item Attachment:
File name: 43038-1-tip.patch Size:8 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43038>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/