[Pkg-octave-commit] [octave-statistics] 04/04: d/p/use-corr-instead-of-corrcoef.patch: New patch
Rafael Laboissière
rlaboiss-guest at moszumanska.debian.org
Sat May 2 16:27:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
rlaboiss-guest pushed a commit to branch master
in repository octave-statistics.
commit ea0cf7f8eae07c36f6554e4e3d1f453a6cd2a3ea
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Sat May 2 13:10:52 2015 -0300
d/p/use-corr-instead-of-corrcoef.patch: New patch
---
debian/patches/series | 1 +
debian/patches/use-corr-instead-of-corrcoef.patch | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index 3b241f5..771682d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ data-files-for-tests.diff
expose-tbl-delim-tests.patch
use-corr-instead-of-cor.patch
small-k-in-gev-functions.patch
+use-corr-instead-of-corrcoef.patch
diff --git a/debian/patches/use-corr-instead-of-corrcoef.patch b/debian/patches/use-corr-instead-of-corrcoef.patch
new file mode 100644
index 0000000..b31a687
--- /dev/null
+++ b/debian/patches/use-corr-instead-of-corrcoef.patch
@@ -0,0 +1,18 @@
+Description: Use corr() instead of the deprecated corrcoef() function
+ The corrcoef() function has been removed from Octave 4.0.
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Origin: upstream, http://sourceforge.net/p/octave/statistics/ci/f26c570
+Bug: https://savannah.gnu.org/bugs/index.php?44987
+Last-Update: 2015-05-02
+
+--- octave-statistics-1.2.4.orig/inst/stepwisefit.m
++++ octave-statistics-1.2.4/inst/stepwisefit.m
+@@ -75,7 +75,7 @@ while 1
+ added = false;
+ if numel(X_use) < k
+ X_inds = zeros(k, 1, "logical"); X_inds(X_use) = 1;
+- [~, i_max_corr] = max(abs(corrcoef(X(:, ~X_inds), r))); #try adding the variable with the highest correlation to the residual from current regression
++ [~, i_max_corr] = max(abs(corr(X(:, ~X_inds), r))); #try adding the variable with the highest correlation to the residual from current regression
+ i_max_corr = (1:k)(~X_inds)(i_max_corr); #index within the original predictor set
+ [b_new, bint_new, r_new, rint_new, stats_new] = regress(y, [ones(n, 1) X(:, [X_use i_max_corr])], penter);
+ z_new = abs(b_new(end)) / (bint_new(end, 2) - b_new(end));
--
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-statistics.git
More information about the Pkg-octave-commit
mailing list