sim_ccrw: Simulate Constrained Correlated Random Walk (CCRW)

View source: R/fidelity_funs_simulate-ccrw.R

sim_ccrwR Documentation

Simulate Constrained Correlated Random Walk (CCRW)

Description

Function to simulate a movement track under a Constrained Correlated Random Walk model. Called as needed by simulate_tracks.

Usage

sim_ccrw(
  n_steps,
  sl_par,
  rho,
  boundary_size,
  start_loc = data.frame(x = 0, y = 0),
  scenario_id = NA
)

Arguments

n_steps

Numeric. Number of steps to simulate

sl_par

Vector of length 2 containing the shape and scale of the step length distribution (Weibull)

rho

Numeric. Movement autocorrelation parameter

boundary_size

Numeric. Length of the side of the bounding box (m).

start_loc

Data frame with a single row containing coordinates of the starting location (columns x and y). 0, 0 if unprojected.

scenario_id

Character string. Optional ID of the current scenario. Automatically assigned when using simulate_tracks().

Details

Insert description

Value

Returns a data frame containing the coordinates of each location along the simulated track and the associated simulation parameter values as specified in create_scenarios_ccrw.


picardis/fidelity documentation built on Dec. 10, 2022, 6:16 a.m.