pNeuma_simulator package

Subpackages

Submodules

Module contents

pNeuma_simulator.batch(seed: int, permutation: tuple)[source]

Run a batch simulation with the given seed and permutation.

Parameters:
  • seed (int) – The seed for random number generation.

  • permutation (tuple) – A tuple containing the number of cars and motorcycles.

Returns:

A tuple containing the simulation results for cars and motorcycles.

Return type:

tuple

pNeuma_simulator.ring(t: int, l_agents: list, ax: Axes, sampler) None[source]

Draw the ring animation for a given time step.

Parameters:
  • t (int) – The time step.

  • l_agents (list) – A list of agents at each time step.

  • ax (matplotlib.axes.Axes) – The matplotlib axes object to draw the animation on.

  • sampler – The sampler object.