random_dispersal: Random dispersal of a single agent according to distance...

Description Usage Arguments Value

View source: R/updates.R

Description

Method we use: distance and bearing, Haversine method Note we work in units of radians and kilometres.

  1. Calculate 'd', the distance travelled

  2. Calculate 'theta', the direction or bearing travelled

  3. Convert to lat and long.

Usage

1
random_dispersal(lat, long, lambda)

Arguments

lat

Latitude or 'y' coordinate of agent.

long

Longitude or 'x' coordinate of agent.

lambda

Shape parameter for distance calculation. ABC parameter.

Value

Updated lat and long of agent, as a list. below uses DEGREES in angle for calculation and not radians do we need to do anything about that???


beeysian/cairnsmozzie documentation built on Feb. 15, 2021, 12:12 a.m.