[pktools] 05/07: Add patch to fix 'bandwidth' typo.
Bas Couwenberg
sebastic at xs4all.nl
Thu Aug 7 23:33:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository pktools.
commit 3b955d76ace6a0d747d853016cea8d0aca6bac92
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Aug 8 00:20:03 2014 +0200
Add patch to fix 'bandwidth' typo.
---
debian/changelog | 1 +
debian/patches/bandwidth-typo.patch | 34 ++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 36 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index da030ef..76d9f1d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ pktools (2.5.2+20140505-2) UNRELEASED; urgency=medium
[ Bas Couwenberg ]
* Handle common watch file issues, don't match pktools-latest.tar.gz.
* Fix duplicate short description.
+ * Add patch to fix 'bandwidth' typo.
-- Ross Gammon <rossgammon at mail.dk> Mon, 04 Aug 2014 23:29:02 +0200
diff --git a/debian/patches/bandwidth-typo.patch b/debian/patches/bandwidth-typo.patch
new file mode 100644
index 0000000..6008e98
--- /dev/null
+++ b/debian/patches/bandwidth-typo.patch
@@ -0,0 +1,34 @@
+Description: Fix 'bandwith' typo, replace with 'bandwidth'.
+Author: Bas Couwenberg <sebastic at xs4all.nl>
+
+--- a/src/apps/pkstatascii.cc
++++ b/src/apps/pkstatascii.cc
+@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
+ Optionpk<bool> histogram2d_opt("hist2d","hist2d","calculate 2-dimensional histogram based on two columns",false);
+ Optionpk<short> nbin_opt("nbin","nbin","number of bins to calculate histogram");
+ Optionpk<bool> relative_opt("rel","relative","use percentiles for histogram to calculate histogram",false);
+- Optionpk<double> kde_opt("kde","kde","bandwith of kernel density when producing histogram, use 0 for practical estimation based on Silverman's rule of thumb. Leave empty if no kernel density is required");
++ Optionpk<double> kde_opt("kde","kde","bandwidth of kernel density when producing histogram, use 0 for practical estimation based on Silverman's rule of thumb. Leave empty if no kernel density is required");
+ Optionpk<bool> correlation_opt("cor","correlation","calculate Pearson produc-moment correlation coefficient between two columns (defined by -c <col1> -c <col2>",false);
+ Optionpk<bool> rmse_opt("rmse","rmse","calculate root mean square error between two columns (defined by -c <col1> -c <col2>",false);
+ Optionpk<bool> reg_opt("reg","regression","calculate linear regression error between two columns (defined by -c <col1> -c <col2>",false);
+@@ -202,7 +202,7 @@ int main(int argc, char *argv[])
+ if(max_opt[0])
+ cout << "max value column " << col_opt[icol] << ": " << stat.mymax(dataVector[icol]) << endl;
+ if(histogram_opt[0]){
+- //todo: support kernel density function and estimate sigma as in practical estimate of the bandwith in http://en.wikipedia.org/wiki/Kernel_density_estimation
++ //todo: support kernel density function and estimate sigma as in practical estimate of the bandwidth in http://en.wikipedia.org/wiki/Kernel_density_estimation
+ double sigma=0;
+ if(kde_opt.size()){
+ if(kde_opt[0]>0)
+--- a/src/apps/pkstatogr.cc
++++ b/src/apps/pkstatogr.cc
+@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
+ Optionpk<bool> histogram_opt("hist","hist","calculate histogram",false);
+ Optionpk<unsigned int> nbin_opt("nbin", "nbin", "number of bins");
+ Optionpk<bool> relative_opt("rel","relative","use percentiles for histogram to calculate histogram",false);
+- Optionpk<double> kde_opt("kde","kde","bandwith of kernel density when producing histogram, use 0 for practical estimation based on Silverman's rule of thumb. Leave empty if no kernel density is required");
++ Optionpk<double> kde_opt("kde","kde","bandwidth of kernel density when producing histogram, use 0 for practical estimation based on Silverman's rule of thumb. Leave empty if no kernel density is required");
+ Optionpk<bool> mean_opt("mean","mean","calculate mean value",false);
+ Optionpk<bool> median_opt("median","median","calculate median value",false);
+ Optionpk<bool> stdev_opt("stdev","stdev","calculate standard deviation",false);
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..dca18d6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+bandwidth-typo.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git
More information about the Pkg-grass-devel
mailing list