Poisson Process#

Simulate and visualise paths

# Author: Dialid Santiago <d.santiago@outlook.com>
# License: MIT
# Description: Simulate and visualise a Poisson Process

from aleatory.processes import PoissonProcess
from aleatory.styles import qp_style

qp_style()  # Use quant-pastel-style

p = PoissonProcess()
fig = p.draw(N=200, T=10.0, colormap="pink", figsize=(12, 7))
fig.show()
Poisson Process $N(\lambda=1.0)$, Simulated Paths $N_t, t \leq T$, $N_T$
p = PoissonProcess(rate=2.0)
fig = p.draw(N=200, T=10.0, colormap="viridis", figsize=(12, 7), envelope=True)
fig.show()
Poisson Process $N(\lambda=2.0)$, Simulated Paths $N_t, t \leq T$, $N_T$
fig = p.plot(N=10, T=10.0, figsize=(10, 6))
fig.show()
Poisson Process $N(\lambda=2.0)$

Total running time of the script: (0 minutes 2.324 seconds)

Gallery generated by Sphinx-Gallery