updateGrid {LobsterCatch} | R Documentation |
This function updates the coordinate of each lobster at each timestep,
Description
This function updates the coordinate of each lobster at each timestep,
Usage
updateGrid(
Lobster,
Trap,
trapCatch,
lobSize,
lobSex,
radiusOfInfluence,
currentZoI,
dStep,
howClose,
q0,
qmin,
saturationThreshold,
trapSaturation,
lengthBased,
lobLengthThreshold,
sexBased
)
Arguments
Lobster |
is the x & y coordinates of each lobster |
Trap |
is the x & y coordinates of the trap |
trapCatch |
number of trapped lobster |
lobSize |
Size of trapped lobster |
lobSex |
Sex of trapped lobster |
radiusOfInfluence |
is the initial radius of influence |
currentZoI |
is the bait's area of influence at each timestep |
dStep |
is how much a lobster moves in each time step |
howClose |
The area within which a lobster considered trapped |
q0 |
is the initial probability of entry into an empty trap |
qmin |
is the asymptotic minimum probability of entry |
saturationThreshold |
is the number of lobsters in a trap at which the probability of another lobster entering the trap is zero |
trapSaturation |
Logical. If TRUE, lobsters behavioral interaction is included during the simulation. |
lengthBased |
Logical. If TRUE, lobster size is taken into account |
lobLengthThreshold |
is a size threshold (Carapace Length in mm), if a lobster larger than this threshold caught there will be no more entry to the trap |
sexBased |
Logical. If TRUE, lobster sex is taken into account and user must provide a list containing sex distribution for the simulated population |
Value
a list of new coordinates, number of catch and their sizes