random_steps | R Documentation |
Function to generate a given number of random steps for each observed step.
random_steps(x, ...)
## S3 method for class 'numeric'
random_steps(
x,
n_control = 10,
angle = 0,
rand_sl = random_numbers(make_exp_distr(), n = 1e+05),
rand_ta = random_numbers(make_unif_distr(), n = 1e+05),
...
)
## S3 method for class 'steps_xy'
random_steps(
x,
n_control = 10,
sl_distr = fit_distr(x$sl_, "gamma"),
ta_distr = fit_distr(x$ta_, "vonmises"),
rand_sl = random_numbers(sl_distr, n = 1e+05),
rand_ta = random_numbers(ta_distr, n = 1e+05),
include_observed = TRUE,
start_id = 1,
...
)
## S3 method for class 'bursted_steps_xyt'
random_steps(
x,
n_control = 10,
sl_distr = fit_distr(x$sl_, "gamma"),
ta_distr = fit_distr(x$ta_, "vonmises"),
rand_sl = random_numbers(sl_distr, n = 1e+05),
rand_ta = random_numbers(ta_distr, n = 1e+05),
include_observed = TRUE,
...
)
x |
Steps. |
... |
Further arguments, none implemented. |
n_control |
|
angle |
|
rand_sl |
|
rand_ta |
|
sl_distr |
|
ta_distr |
|
include_observed |
|
start_id |
integer Index where the numbering for step ids start. |
A tibble
of class random_steps.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.