rcpp_move_wrap: rcpp_move_wrap

View source: R/RcppExports.R

rcpp_move_wrapR Documentation

rcpp_move_wrap

Description

Rcpp movement behavior wrapper.

Usage

rcpp_move_wrap(
  fishpop,
  fishpop_attr,
  movement,
  move_mean,
  move_sd,
  move_reef,
  move_border,
  move_return,
  max_dist,
  coords_reef,
  extent,
  dimensions
)

Arguments

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).

Details

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'.

Value

void


Allgeier-Lab/arrR documentation built on Feb. 13, 2025, 7:44 a.m.