Constant Brownian Model

class ollin.movement_models.constant_brownian.Model(parameters=None)[source]
generate_movement(initial_positions, site, steps, velocity)[source]

Generate simulated movement from initial positions and conditions.

This is an abstract method that must be implemented in any subclass.

Parameters:
  • initial_position (array) – Array of initial positions of shape [num, 2] to specify coordinates of individuals to be simulated.
  • site (Site) – Site in which to simulate movement.
  • steps (int) – Number of steps to simulate.
  • velocity (int) – Mean velocity of individuals.
Returns:

array – Array of shape [num, steps, 2], so if (x, y) = Array[i, j, :] then x and y are the coordinates of the i-th individual at step j in the simulation. Number of steps is determined by number of days and steps per day parameter.

Return type:

array