Skip to contents

Step function for wait-and-move movement pattern

Usage

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
)

Arguments

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

Value

Another moment - position tibble with extra columns `direction`, `speed`, `speed_scale`, `ttc` and `mov_state`

Details

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

See also

Other step_functions: step_direct(), step_vonmises(), step_zigzag()