Nothing
# generic methods for human component
#' @title Entomological inoculation rate on human strata
#' @description This method dispatches on the type of `pars$Xpar`.
#' @param t current simulation time
#' @param y state vector
#' @param pars an [environment]
#' @return a [numeric] vector of length `nStrata`
#' @export
F_EIR <- function(t, y, pars) {
UseMethod("F_EIR", pars$Xpar)
}
#' @title Size of effective infectious human population
#' @description This method dispatches on the type of `pars$Xpar`.
#' @param t current simulation time
#' @param y state vector
#' @param pars an [environment]
#' @return a [numeric] vector of length `nStrata`
#' @export
F_x <- function(t, y, pars) {
UseMethod("F_x", pars$Xpar)
}
#' @title Size of lagged effective infectious human population
#' @description This method dispatches on the type of `pars$Xpar`.
#' @param t current simulation time
#' @param y state vector
#' @param pars an [environment]
#' @param lag duration of lag `t-lag`
#' @return a [numeric] vector of length `nStrata`
#' @export
F_x_lag <- function(t, y, pars, lag) {
UseMethod("F_x_lag", pars$Xpar)
}
#' @title Biting distribution matrix
#' @description This method dispatches on the type of `pars$Xpar`.
#' @param t current simulation time
#' @param y state vector
#' @param pars an [environment]
#' @return a [numeric] vector of length `nStrata`
#' @export
F_beta <- function(t, y, pars) {
UseMethod("F_beta", pars$Xpar)
}
#' @title Lagged biting distribution matrix
#' @description This method dispatches on the type of `pars$Xpar`.
#' @param t current simulation time
#' @param y state vector
#' @param pars an [environment]
#' @param lag duration of lag `t-lag`
#' @return a [numeric] vector of length `nStrata`
#' @export
F_beta_lag <- function(t, y, pars, lag) {
UseMethod("F_beta_lag", pars$Xpar)
}
#' @title Derivatives for human population
#' @description This method dispatches on the type of `pars$Xpar`.
#' @param t current simulation time
#' @param y state vector
#' @param pars an [environment]
#' @param EIR vector giving the per-capita entomological inoculation rate for each strata
#' @return a [numeric] vector
#' @export
dXdt <- function(t, y, pars, EIR) {
UseMethod("dXdt", pars$Xpar)
}
#' @title Add indices for human population to parameter list
#' @description This method dispatches on the type of `pars$Xpar`.
#' @param pars an [environment]
#' @return the modified parameter [list]
#' @export
make_index_X <- function(pars) {
UseMethod("make_index_X", pars$Xpar)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.