View source: R/distanceToTrapCalculator.R
distanceToTrapCalculator | R Documentation |
distanceToClosestTrap
function.This function calculates the Euclidean distance between Trap(s) and each individual lobster. The function is internally called
in distanceToClosestTrap
function.
distanceToTrapCalculator(Lobster, Trap)
Lobster |
location of lobster in the grid in x and y coordinates. |
Trap |
location of trap in the grid in x and y coordinates. |
Returns the distance to trap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.