rcpp_move_wrap | R Documentation |
Rcpp movement behavior wrapper.
rcpp_move_wrap(
fishpop,
fishpop_attr,
movement,
move_mean,
move_sd,
move_reef,
move_border,
move_return,
max_dist,
coords_reef,
extent,
dimensions
)
fishpop |
Matrix with fishpop values. |
fishpop_attr |
Matrix with id and threshold of pop_reserves_max. |
movement |
String specifing movement algorithm. |
move_mean , move_sd |
Double with mean movement parameter. |
move_reef |
Double with mean movement distance when sheltering at reef. |
move_border |
Double with movement distance that surrounds reef cell border. |
move_return |
Double with mean movement distance when returning to reef. |
max_dist |
Maximum distance an individual can move. |
coords_reef |
Matrix with ID and coords of reef cells. |
extent |
Vector with extent (xmin,xmax,ymin,ymax). |
dimensions |
Vector with dimensions (nrow, ncol). |
Wrapper function around different movement algorithms. Individuals can either move
completely random ('rand'
), attracted towards the artifical reef cells
'attr'
or movement can be depending on the bioenergetics of the
fish individuals 'behav'
.
void
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.