distanceToTrapCalculator: This function calculates the Euclidean distance between...

View source: R/distanceToTrapCalculator.R

distanceToTrapCalculatorR Documentation

This function calculates the Euclidean distance between Trap(s) and each individual lobster. The function is internally called in distanceToClosestTrap function.

Description

This function calculates the Euclidean distance between Trap(s) and each individual lobster. The function is internally called in distanceToClosestTrap function.

Usage

distanceToTrapCalculator(Lobster, Trap)

Arguments

Lobster

location of lobster in the grid in x and y coordinates.

Trap

location of trap in the grid in x and y coordinates.

Value

Returns the distance to trap.


vpourfaraj/lobsterCatch documentation built on May 17, 2023, 1:37 p.m.