step_waitandmove | R Documentation |
Step function for wait-and-move movement pattern
step_waitandmove( moment, time_next, settings, move_time = c(0.5, 1.5), wait_time = c(0.2, 0.5), wait_prob = 0.1, syncstart = F )
moment |
Position tibble with extra columns 'direction' and 'speed' |
time_next |
Next time step to predict |
settings |
List with basic properties |
move_time |
Range of move phase duration |
wait_time |
Range of wait phase duration |
wait_prob |
Probability of waiting |
syncstart |
Logical, if time-to-change should be synchronized when it is generated for the first time |
Using this step function, objects changes between two states - moving and waiting. After each state, new state is sampled with given proabability.
When probability of waiting is set to zero, objects move in a same way as in step_zigzag step function
Another moment - position tibble with extra columns 'direction', 'speed', 'speed_scale', 'ttc' and 'mov_state'
Other step_functions:
step_direct()
,
step_vonmises()
,
step_zigzag()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.