View source: R/fidelity_funs_simulate-mcrw.R
sim_mcrw | R Documentation |
Function to simulate a movement track under a Mixture Correlated Random Walk
model. Called as needed by simulate_tracks
.
sim_mcrw( n_steps, sl_par, rho, start_loc, habitat_effect, lands, jitter, scenario_id = NA, lands_name = NA )
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 |
start_loc |
Data frame with a single row containing coordinates of the
starting location (columns |
habitat_effect |
Numeric. Strength of habitat response (range 0-1). |
lands |
Raster of habitat quality. |
scenario_id |
Character string. Optional ID of the current scenario. Automatically assigned when using simulate_tracks(). |
lands_name |
Path to the landscape file. |
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_mcrw
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.