[r-cran-mcmcpack] 28/90: Imported Upstream version 0.9-3

Andreas Tille tille at debian.org
Fri Dec 16 09:07:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-mcmcpack.

commit dc66dad741cc6864da94587d6ffbe769b1ec08bc
Author: Andreas Tille <tille at debian.org>
Date:   Fri Dec 16 08:07:11 2016 +0100

    Imported Upstream version 0.9-3
---
 DESCRIPTION                |  7 ++++---
 HISTORY                    |  4 ++++
 R/MCMCpoissonChangepoint.R |  0
 R/btsutil.R                | 14 ++++++++------
 configure.ac               |  4 ++--
 man/plotChangepoint.Rd     |  4 +++-
 6 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 0a3ec6c..1cdc59d 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
 Package: MCMCpack
-Version: 0.9-2
-Date: 2007-10-2
+Version: 0.9-3
+Date: 2007-10-16
 Title: Markov chain Monte Carlo (MCMC) Package
 Author: Andrew D. Martin <admartin at wustl.edu>,
   Kevin M. Quinn <kevin_quinn at harvard.edu>,
@@ -17,5 +17,6 @@ Description: This package contains functions to perform Bayesian
   for statistical distributions, a general purpose Metropolis
   sampling algorithm, and tools for visualization.
 License: GPL version 2
+SystemRequirements: gcc (>= 4.0)
 URL: http://mcmcpack.wustl.edu
-Packaged: Tue Oct  2 19:42:13 2007; adm
+Packaged: Tue Oct 16 20:11:20 2007; adm
diff --git a/HISTORY b/HISTORY
index b889b1a..7775a53 100644
--- a/HISTORY
+++ b/HISTORY
@@ -2,6 +2,10 @@
 // Changes and Bug Fixes
 //
 
+0.9-2 to 0.9-3
+  * added gcc 4.0 check in configure.ac and SystemRequirements
+  * added verbose option to plotChangepoint()
+
 0.9-1 to 0.9-2
   * fixed Makevars per Ripley's email [PKG_CXXFLAGS to PKG_CPPFLAGS]
   * fixed encoding on some documentation files [thanks to Kurt Hornik]
diff --git a/R/MCMCpoissonChangepoint.R b/R/MCMCpoissonChangepoint.R
old mode 100755
new mode 100644
diff --git a/R/btsutil.R b/R/btsutil.R
index c49eecd..deb1722 100644
--- a/R/btsutil.R
+++ b/R/btsutil.R
@@ -73,7 +73,7 @@
 
     ## "plotChangepoint" draws a plot of posterior changepoint probability
     "plotChangepoint" <-
-    function (mcmcout, xlab = "Time", ylab = "")
+    function (mcmcout, xlab = "Time", ylab = "", verbose = FALSE)
     {
     out <- attr(mcmcout, "prob.state")
     y <- attr(mcmcout, "y")
@@ -109,11 +109,13 @@
     cp.means <- rep(NA, m + 1)
     cp.start <- c(1, cp + 1)
     cp.end <- c(cp, length(y))
-    cat("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n")
-    cat("Expected changepoint(s) ", cp + time.frame[1], "\n")
-    for (i in 1:(m + 1)) cp.means[i] <- mean(y[cp.start[i]:cp.end[i]])
-    cat("Local means for each regime are ", cp.means, "\n")
-    cat("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n")
+	if (verbose == TRUE){
+		cat("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n")
+		cat("Expected changepoint(s) ", cp + time.frame[1], "\n")
+		for (i in 1:(m + 1)) cp.means[i] <- mean(y[cp.start[i]:cp.end[i]])
+			cat("Local means for each regime are ", cp.means, "\n")
+			cat("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n")
+	}
 }
     ## prior check for transition matrix
     "check.P" <-
diff --git a/configure.ac b/configure.ac
index dcb91cd..5720ecc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,8 +14,8 @@ if test "${GXX}" = yes; then
   gxx_version=`${CXX} -v 2>&1 | grep "^.*g.. version" | \
      sed -e 's/^.*g.. version *//'`
   case ${gxx_version} in
-    1.*|2.*)
-      AC_MSG_WARN([Only g++ version 3.0 or greater can be used with MCMCpack.])
+    1.*|2.*|3.*)
+      AC_MSG_WARN([Only g++ version 4.0 or greater can be used with MCMCpack.])
       AC_MSG_ERROR([Please use a different compiler.])   
    ;;
   esac
diff --git a/man/plotChangepoint.Rd b/man/plotChangepoint.Rd
index 6bd6c7b..ecc8482 100755
--- a/man/plotChangepoint.Rd
+++ b/man/plotChangepoint.Rd
@@ -4,7 +4,7 @@
 \description{Plot the posterior distribution over the location of the changepoints.}
 
 \usage{
-   plotChangepoint(mcmcout, xlab="Time", ylab="")
+   plotChangepoint(mcmcout, xlab="Time", ylab="", verbose = FALSE)
 }
 
 \arguments{
@@ -15,6 +15,8 @@
 
 \item{ylab}{Label for the y-axis.}
 
+\item{verbose}{If verbose=TRUE, expected changepoints are printed.}
+
 }
 
 \author{Jong Hee Park, \email{jhp at uchicago.edu}, \url{http://home.uchicago.edu/~jhp/}.}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-mcmcpack.git



More information about the debian-science-commits mailing list