Skip to content

Commit

Permalink
fixes for trailing/lost {}
Browse files Browse the repository at this point in the history
  • Loading branch information
njtierney committed Nov 13, 2024
1 parent d000688 commit 7dbe80c
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 58 deletions.
22 changes: 11 additions & 11 deletions R/iterate_dynamic_function.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@
#'
#' @return a named list with four greta arrays:
#' \itemize{
#' \item{\code{stable_state}} {a vector or matrix (with the same dimensions as
#' \code{initial_state}) giving the state after the final iteration.}
#' \item{\code{all_states}} {an n x m x niter matrix of the state values at
#' each iteration. This will be 0 for all entries after \code{iterations}.}
#' \item{\code{converged}} {an integer scalar indicating whether \emph{all}
#' the matrix iterations converged to a tolerance less than \code{tol} (1 if
#' so, 0 if not) before the algorithm finished.}
#' \item{\code{iterations}} {a scalar of the maximum number of iterations
#' completed before the algorithm terminated. This should match \code{niter}
#' if \code{converged} is \code{FALSE}.}
#' \item `stable_state` a vector or matrix (with the same dimensions as
#' `initial_state`) giving the state after the final iteration.
#' \item `all_states` an n x m x niter matrix of the state values at
#' each iteration. This will be 0 for all entries after `iterations`.
#' \item `converged` an integer scalar indicating whether \emph{all}
#' the matrix iterations converged to a tolerance less than `tol` (1 if
#' so, 0 if not) before the algorithm finished.
#' \item `iterations` a scalar of the maximum number of iterations
#' completed before the algorithm terminated. This should match `niter`
#' if `converged` is `FALSE`
#' }
#'
#' @note because greta vectorises across both MCMC chains and the calculation of
#' greta array values, the algorithm is run until all chains (or posterior
#' samples), sites and stages have converged to stable growth. So a single
#' value of both \code{converged} and \code{iterations} is returned, and the
#' value of both `converged` and `iterations` is returned, and the
#' value of this will always have the same value in an `mcmc.list` object. So
#' inspecting the MCMC trace of these parameters will only tell you whether
#' the iteration converged in \emph{all} posterior samples, and the maximum
Expand Down
22 changes: 11 additions & 11 deletions R/iterate_dynamic_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@
#'
#' @return a named list with four greta arrays:
#' \itemize{
#' \item{\code{stable_state}} {a vector or matrix (with the same dimensions as
#' \code{initial_state}) giving the state after the final iteration.}
#' \item{\code{all_states}} {an n x m x niter matrix of the state values at
#' each iteration. This will be 0 for all entries after \code{iterations}.}
#' \item{\code{converged}} {an integer scalar indicating whether \emph{all}
#' the matrix iterations converged to a tolerance less than \code{tol} (1 if
#' so, 0 if not) before the algorithm finished.}
#' \item{\code{iterations}} {a scalar of the maximum number of iterations
#' completed before the algorithm terminated. This should match \code{niter}
#' if \code{converged} is \code{FALSE}.}
#' \item `stable_state` a vector or matrix (with the same dimensions as
#' `initial_state`) giving the state after the final iteration.
#' \item `all_states` an n x m x niter matrix of the state values at
#' each iteration. This will be 0 for all entries after `iterations`.
#' \item `converged` an integer scalar indicating whether \emph{all}
#' the matrix iterations converged to a tolerance less than `tol` (1 if
#' so, 0 if not) before the algorithm finished.
#' \item `iterations` a scalar of the maximum number of iterations
#' completed before the algorithm terminated. This should match `niter`
#' if `converged` is `FALSE`
#' }
#'
#' @note because greta vectorises across both MCMC chains and the calculation of
#' greta array values, the algorithm is run until all chains (or posterior
#' samples), sites and stages have converged to stable growth. So a single
#' value of both \code{converged} and \code{iterations} is returned, and the
#' value of both `converged` and `iterations` is returned, and the
#' value of this will always have the same value in an `mcmc.list` object. So
#' inspecting the MCMC trace of these parameters will only tell you whether
#' the iteration converged in \emph{all} posterior samples, and the maximum
Expand Down
20 changes: 10 additions & 10 deletions R/iterate_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
#'
#' @return a named list with five greta arrays:
#' \itemize{
#' \item{`lambda`} {a scalar or vector giving the ratio of the first stage
#' values between the final two iterations.}
#' \item{`stable_state`} {a vector or matrix (with the same dimensions as
#' \item `lambda` a scalar or vector giving the ratio of the first stage
#' values between the final two iterations.
#' \item `stable_state` a vector or matrix (with the same dimensions as
#' `initial_state`) giving the state after the final iteration,
#' normalised so that the values for all stages sum to one.}
#' \item{`all_states`} {an n x m x niter matrix of the state values at
#' each iteration. This will be 0 for all entries after `iterations`.}
#' \item{`converged`} {an integer scalar or vector indicating whether
#' normalised so that the values for all stages sum to one.
#' \item `all_states` an n x m x niter matrix of the state values at
#' each iteration. This will be 0 for all entries after `iterations`.
#' \item `converged` an integer scalar or vector indicating whether
#' the iterations for each matrix have converged to a tolerance less than
#' `tol` (1 if so, 0 if not) before the algorithm finished.}
#' \item{`iterations`} {a scalar of the maximum number of iterations
#' `tol` (1 if so, 0 if not) before the algorithm finished.
#' \item `iterations` a scalar of the maximum number of iterations
#' completed before the algorithm terminated. This should match `niter`
#' if `converged` is `FALSE`.}
#' if `converged` is `FALSE`.
#' }
#'
#' @note because greta vectorises across both MCMC chains and the calculation of
Expand Down
16 changes: 8 additions & 8 deletions man/iterate_dynamic_function.Rd

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

16 changes: 8 additions & 8 deletions man/iterate_dynamic_matrix.Rd

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

20 changes: 10 additions & 10 deletions man/iterate_matrix.Rd

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

0 comments on commit 7dbe80c

Please sign in to comment.