directionalMove {LobsterCatch} | R Documentation |
This function models movement of lobsters toward the trap.The distance of lobsters to trap determines the magnitude of those moves. As lobster gets closer to the trap, the magnitude of its directional move becomes larger and the random move becomes smaller.
Description
This function models movement of lobsters toward the trap.The distance of lobsters to trap determines the magnitude of those moves. As lobster gets closer to the trap, the magnitude of its directional move becomes larger and the random move becomes smaller.
Usage
directionalMove(
Lobster,
dStep,
minDistoTrap,
Trap,
radiusOfInfluence,
currentZoI
)
Arguments
Lobster |
location of lobster in the grid in x and y coordinates. |
dStep |
Distance that each lobster moves during one time step. |
minDistoTrap |
Distance from the trap. |
Trap |
location of trap in the arena. |
radiusOfInfluence |
Radius of influence for the baited trap. |
currentZoI |
Radius of influence in each time step given the bait shrinkage. |
Value
Returns the new coordinates of each lobster in the arena after each directional move.
[Package LobsterCatch version 0.1.0 Index]