Skip to contents

Check that K_matrix

  • is an nPatches \(\times\) nPatches matrix;

  • diagonal elements are -1;

  • and columns sum to 0.

After passing checks, xds_obj is updated.

In models with multiple species, use s to specify the species to update.

Usage

change_K_matrix(K_matrix, xds_obj, s = 1)

Arguments

K_matrix

a mosquito dispersal matrix

xds_obj

an xds model object

s

the vector species index

Value

an xds object