Get local density
get_local_density.RdGets the number of individuals within a radius R of a focal individual i at each time point
Arguments
- xs
- N x n_timesmatrix giving x positions of all- Nindividuals over- n_timestimesteps
- ys
- N x n.timesmatrix giving y positions of all- Nindividuals over- n_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 - xsand- ys)