replay_trajectory_classification.continuous_state_transitions.estimate_movement_var#

estimate_movement_var(position: ndarray, sampling_frequency: int = 1) ndarray[source]#

Estimates the movement variance based on position.

Parameters:
  • position (np.ndarray, shape (n_time, n_position_dim)) – Position of the animal

  • sampling_frequency (int, optional) – Number of samples per second.

Returns:

movement_var – Variance of the movement.

Return type:

np.ndarray, shape (n_position_dim,)