R/spatPomp_class.R

#' An S4 class to represent a spatiotemporal POMP model and data.
#'
#' @slot unit_names A vector containing the spatial units of a spatiotemporal POMP.
#' @slot unit_statenames A vector containing the state names such that appending the unit indices to the
#' unit statenames will result in the each unit's corresponding states.
#' @slot unit_obsnames A vector of observation types for a spatial unit.
#' @slot eunit_measure A pomp_fun representing the expected measurement for each spatial unit given its states.
#' @slot dunit_measure A pomp_fun representing the unit measurement density for each spatial unit.
#' @slot runit_measure A pomp_fun representing the unit observation simulator.
setClass(
  'spatPomp',
  contains="pomp",
  slots=c(
    unit_names = 'character',
    unit_statenames = 'character',
    unit_obsnames = 'character',
    unitname = 'character',
    unit_covarnames = 'character',
    shared_covarnames = 'character',
    unit_accumvars = 'character',
    eunit_measure = 'pomp_fun',
    munit_measure = 'pomp_fun',
    vunit_measure = 'pomp_fun',
    dunit_measure = 'pomp_fun',
    runit_measure = 'pomp_fun'
  )
)

Try the spatPomp package in your browser

Any scripts or data that you put into this service are public.

spatPomp documentation built on Aug. 10, 2023, 1:10 a.m.