[Pkg-octave-commit] [SCM] Debian packaging for octave-econometrics branch, master, updated. 196ee95b86eb9af0a89a30ff6b3a79daf715b0dd

Sébastien Villemot sebastien.villemot at ens.fr
Thu Mar 22 20:57:35 UTC 2012


The following commit has been merged in the master branch:
commit 196ee95b86eb9af0a89a30ff6b3a79daf715b0dd
Author: Sébastien Villemot <sebastien.villemot at ens.fr>
Date:   Thu Mar 22 21:56:57 2012 +0100

    debian/patches/other-deprecated-functions.patch: new patch

diff --git a/debian/patches/other-deprecated-functions.patch b/debian/patches/other-deprecated-functions.patch
new file mode 100644
index 0000000..12f696d
--- /dev/null
+++ b/debian/patches/other-deprecated-functions.patch
@@ -0,0 +1,37 @@
+Description: Fix use of other deprecated functions
+Author: Sébastien Villemot <sebastien.villemot at ens.fr>
+Forwarded: no
+Last-Update: 2012-03-22
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/inst/gmm_example.m
++++ b/inst/gmm_example.m
+@@ -25,7 +25,7 @@
+ w = [x, rand(n,1)];
+ theta_true = ones(k,1);
+ lambda = exp(x*theta_true);
+-y = poisson_rnd(lambda);
++y = poissrnd(lambda);
+ [xs, scalecoef] = scale_data(x);
+ 
+ # The arguments for gmm_estimate
+--- a/inst/gmm_results.m
++++ b/inst/gmm_results.m
+@@ -88,7 +88,7 @@
+ 	df = n - k;
+ 	if df > 0
+ 		clabels = char("Value","df","p-value");
+-		a = [n*obj_value, df, 1 - chisquare_cdf(n*obj_value, df)];
++		a = [n*obj_value, df, 1 - chi2cdf(n*obj_value, df)];
+ 		printf("\n");
+ 		prettyprint(a, junk, clabels);
+ 	else
+@@ -96,7 +96,7 @@
+ 	end;
+ 
+ 	# results for parameters
+-	a =[theta, se, theta./se, 2 - 2*normal_cdf(abs(theta ./ se))];
++	a =[theta, se, theta./se, 2 - 2*normcdf(abs(theta ./ se))];
+ 	clabels = char("estimate", "st. err", "t-stat", "p-value");
+ 	printf("\n");
+ 	prettyprint(a, names, clabels);
diff --git a/debian/patches/series b/debian/patches/series
index b0edb0c..dbd9082 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 deprecated-functions.patch
+other-deprecated-functions.patch

-- 
Debian packaging for octave-econometrics



More information about the Pkg-octave-commit mailing list