Learn R Programming

amt (version 0.0.7)

random_steps: Generate Random Steps

Description

Function to generate a given number of random steps for each observed step.

Usage

random_steps(x, ...)

# S3 method for steps_xy random_steps(x, n_control = 10, sl_distr = "gamma", ta_distr = "vonmises", random.error = 0.001, ...)

Arguments

x

Steps.

...

Further arguments, none implemented.

n_control

[integer(1)=10]{>1} The number of control steps paired with each observed step.

sl_distr

[character(1)='gamma']{'gamma'} The distribution to be fitted to the empirical distribution of step lengths.

ta_distr

[character(1)='vonmises']{'vonmises', 'unif'} The distribution to be fitted to the empirical distribution of turn angles.

random.error

[numeric(1)=0.001]{>0} Upper limit for a uniformly distributed random error (between 0 and random.error) to be added to step lengths, to avoid step lengths of length 0.