Skip to content

Commit 2d7586c

Browse files
committed
onestep takes one step
1 parent d07a082 commit 2d7586c

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: pomp
22
Type: Package
33
Title: Statistical Inference for Partially Observed Markov Processes
4-
Version: 5.9.0.0
5-
Date: 2024-06-02
4+
Version: 5.9.1.0
5+
Date: 2024-06-07
66
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="kingaa@umich.edu",comment=c(ORCID="0000-0001-6159-3207")),
77
person(given=c("Edward","L."),family="Ionides",role="aut",comment=c(ORCID="0000-0002-4190-0174")) ,
88
person(given="Carles",family="Bretó",role="aut",comment=c(ORCID="0000-0003-4695-4902")),

R/rprocess_spec.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
##' They differ as to how this is done.
5353
##' Specifically,
5454
##' \enumerate{
55-
##' \item \code{onestep} takes a single step to go from any given time \code{t1} to any later time \code{t2} (\code{t1 < t2}).
55+
##' \item \code{onestep} takes a single step to go from any given time \code{t1} to any later time \code{t2} (\code{t1 <= t2}).
5656
##' Thus, this plug-in is designed for use in situations where a closed-form solution to the process exists.
5757
##' \item To go from \code{t1} to \code{t2}, \code{euler} takes \code{n} steps of equal size, where
5858
##' \preformatted{

inst/NEWS

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
_N_e_w_s _f_o_r _p_a_c_k_a_g_e '_p_o_m_p'
22

3+
_C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _5._9._1:
4+
5+
• The rprocess plugin ‘onestep’ now always takes exactly to get
6+
from one observation time to the next, even when the interval
7+
between them is zero.
8+
39
_C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _5._8._4:
410

511
• To add additional elements for use by the basic model

inst/NEWS.Rd

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
\name{NEWS}
22
\title{News for package `pomp'}
3+
\section{Changes in \pkg{pomp} version 5.9.1}{
4+
\itemize{
5+
\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.
6+
}
7+
}
38
\section{Changes in \pkg{pomp} version 5.8.4}{
49
\itemize{
510
\item To add additional elements for use by the basic model components (i.e., \dQuote{userdata}), the \code{userdata} argument should now be used.

man/rprocess_spec.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/euler.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ SEXP euler_simulator
208208
switch (method) {
209209
case onestep: default: // one step
210210
dt = time[step]-t;
211-
nstep = (dt > 0) ? 1 : 0;
211+
nstep = 1;
212212
break;
213213
case discrete: // fixed step
214214
dt = deltat;

0 commit comments

Comments
 (0)