replay_trajectory_classification.simulate.simulate_position_with_pauses#

simulate_position_with_pauses(time: ndarray, track_height: float, running_speed: float = 15, pause: float = 0.5, sampling_frequency: float = 1) ndarray[source]#

Simulate an animal moving with pauses.

Parameters:
  • time (ndarray, shape (n_time,)) – The time vector.

  • track_height (float) – The height of the track.

  • running_speed (float, optional) – The running speed (default is 15).

  • pause (float, optional) – The pause duration (default is 0.5).

  • sampling_frequency (float, optional) – The sampling frequency (default is 1).

Returns:

position – The simulated position of the animal with pauses.

Return type:

ndarray, shape (n_time,)