Get local density
get_local_density.RdArguments
- xs
N x n_timesmatrix giving x positions of allNindividuals overn_timestimesteps- ys
N x n.timesmatrix giving y positions of allNindividuals overn_timestimesteps- i
the focal individual (for whom the local density will be computed)
- R
the radius over which to compute the local density (in same units as
xsandys)