A flexible setup function for mosquito dispersal. The first
argument Kname dispatches a method: Kname is used to set the class of options, and
the method dispatches on class(options)
Options for Kname are:
is.matrix(Kname): if the user passes a matrix, thenclass(Kname) <- "as_matrix"Kname = "no_setup"– thexdsobject is returned unmodifiedKname = "as_matrix"– calls change_K_matrix and passesK_matrixKname = "herethere"– calls make_K_matrix_herethereKname = "xy"– calls make_K_matrix_xy
Usage
setup_K_matrix(Kname, xds_obj, options = list(), s = 1)