Skip to content

Commit 5721732

Browse files
committed
documentation improvement
1 parent b4f3966 commit 5721732

File tree

7 files changed

+33
-9
lines changed

7 files changed

+33
-9
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.11.0.0
5-
Date: 2024-09-11
4+
Version: 5.11.0.1
5+
Date: 2024-10-04
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/accumulators.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
##' @rdname accumvars
77
##' @family implementation information
88
##' @seealso \code{\link{sir}}
9-
##'
109
##' @details
1110
##' In formulating models, one sometimes wishes to define a state variable that will accumulate some quantity over the interval between successive observations.
1211
##' \pkg{pomp} provides a facility to make such features more convenient.
13-
##' Specifically, variables named in the \code{pomp}'s \code{accumvars} argument will be set to zero immediately following each observation.
14-
##' See \code{\link{sir}} and the tutorials on the \href{https://kingaa.github.io/pomp/}{package website} for examples.
15-
##'
12+
##' Specifically, if \eqn{a} is a state-variable named in the \code{pomp}'s \code{accumvars} argument, then for each interval \eqn{(t_k,t_{k+1})}{(t[k],t[k+1])}, \eqn{k=0,1,2,\dots}, \eqn{a} will be set to zero at prior to any \code{\link{rprocess}} computation over that interval.
13+
##' Deterministic trajectory computation is handled slightly differently:
14+
##' see \code{\link{flow}}.
15+
##' For examples, see \code{\link{sir}} and the tutorials on the \href{https://kingaa.github.io/pomp/}{package website}.
1616
##' @example examples/accumulators.R
1717
##'
1818
NULL

R/flow.R

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
##' @return
3030
##' \code{flow} returns an array of dimensions \code{nvar} x \code{nrep} x \code{ntimes}.
3131
##' If \code{x} is the returned matrix, \code{x[i,j,k]} is the i-th component of the state vector at time \code{times[k]} given parameters \code{params[,j]}.
32-
##'
32+
##' @section Accumulator variables:
33+
##' When there are accumulator variables (as determined by the \code{\link{accumvars}} argument), their handling in the continuous-time (vectorfield) case differs from that in the discrete-time (map) case.
34+
##' In the latter, accumulator variables are set to zero at the beginning of each interval \eqn{(t_k,t_{k+1})}{(t[k],t[k+1])}, \eqn{k=0,1,2,\dots} over which flow computation is required.
35+
##' In the former, the flow computation proceeds over the entire set of intervals required, and accumulator variables are then differenced.
36+
##' That is, the value \eqn{a_k}{a[k]} of accumulator variable \eqn{a} at times \eqn{t_k}{t[k]}, \eqn{k=1,2,\dots} will be \eqn{A_k-A_{k-1}}{A[k]-A[k-1]}, where \eqn{A_k}{A[k]} is the solution of the corresponding differential equation at \eqn{t_k}{t[k]}.
3337
NULL
3438

3539
setGeneric(

inst/NEWS

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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._1_1._1:
4+
5+
• The help-page discussion of accumulator variables has been
6+
expanded and clarified.
7+
38
_C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _5._1_0._1:
49

510
• An improper typecast in the C snippet system, which was

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.11.1}{
4+
\itemize{
5+
\item The help-page discussion of accumulator variables has been expanded and clarified.
6+
}
7+
}
38
\section{Changes in \pkg{pomp} version 5.10.1}{
49
\itemize{
510
\item An improper typecast in the C snippet system, which was resolvable by many compilers but threw an error under recent versions of \pkg{clang} on MacOS, has been repaired.

man/accumvars.Rd

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

man/flow.Rd

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

0 commit comments

Comments
 (0)