Skip to main content

input_arrivals.plot_simulated_arrivals()

Simulate repeated weeks and plot arrival counts by weekday (+ hour).

Usage

Source

input_arrivals.plot_simulated_arrivals(
    arrivals_json, hourly=False, n_reps=50, title=None
)

Parameters

arrivals_json: str | Path

Path to the arrivals configuration JSON.

hourly: bool = False

Whether to plot arrival counts by weekday and hour of day, or just weekday.

n_reps: int = 50

Number of simulated weeks. Plot the mean and 10th-90th percentiles of arrival counts across replications.

title: str = None
Title for the plot.