Skip to content

Commit

Permalink
onestep takes one step
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed Jun 7, 2024
1 parent d07a082 commit 2d7586c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: pomp
Type: Package
Title: Statistical Inference for Partially Observed Markov Processes
Version: 5.9.0.0
Date: 2024-06-02
Version: 5.9.1.0
Date: 2024-06-07
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="[email protected]",comment=c(ORCID="0000-0001-6159-3207")),
person(given=c("Edward","L."),family="Ionides",role="aut",comment=c(ORCID="0000-0002-4190-0174")) ,
person(given="Carles",family="Bretó",role="aut",comment=c(ORCID="0000-0003-4695-4902")),
Expand Down
2 changes: 1 addition & 1 deletion R/rprocess_spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
##' They differ as to how this is done.
##' Specifically,
##' \enumerate{
##' \item \code{onestep} takes a single step to go from any given time \code{t1} to any later time \code{t2} (\code{t1 < t2}).
##' \item \code{onestep} takes a single step to go from any given time \code{t1} to any later time \code{t2} (\code{t1 <= t2}).
##' Thus, this plug-in is designed for use in situations where a closed-form solution to the process exists.
##' \item To go from \code{t1} to \code{t2}, \code{euler} takes \code{n} steps of equal size, where
##' \preformatted{
Expand Down
6 changes: 6 additions & 0 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
_N_e_w_s _f_o_r _p_a_c_k_a_g_e '_p_o_m_p'

_C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _5._9._1:

• The rprocess plugin ‘onestep’ now always takes exactly to get
from one observation time to the next, even when the interval
between them is zero.

_C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _5._8._4:

• To add additional elements for use by the basic model
Expand Down
5 changes: 5 additions & 0 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
\name{NEWS}
\title{News for package `pomp'}
\section{Changes in \pkg{pomp} version 5.9.1}{
\itemize{
\item The rprocess plugin \code{onestep} now always takes exactly to get from one observation time to the next, even when the interval between them is zero.
}
}
\section{Changes in \pkg{pomp} version 5.8.4}{
\itemize{
\item To add additional elements for use by the basic model components (i.e., \dQuote{userdata}), the \code{userdata} argument should now be used.
Expand Down
2 changes: 1 addition & 1 deletion man/rprocess_spec.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/euler.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ SEXP euler_simulator
switch (method) {
case onestep: default: // one step
dt = time[step]-t;
nstep = (dt > 0) ? 1 : 0;
nstep = 1;
break;
case discrete: // fixed step
dt = deltat;
Expand Down

0 comments on commit 2d7586c

Please sign in to comment.