R/other_interface.R

Defines functions compute_O

Documented in compute_O

# interface for visitors: any model of visitors must implement these functions

#' @title Compute available alternative blood hosts (\eqn{O})
#' @description This method dispatches on the type of `model$alternative`.
#' @param model an object from [MicroMoB::make_MicroMoB]
#' @return a vector of length `p` giving biting availability of other blood hosts at each patch
#' @export
compute_O <- function(model) {
  UseMethod("compute_O", model$alternative)
}

Try the MicroMoB package in your browser

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

MicroMoB documentation built on Jan. 17, 2023, 9:06 a.m.