# API Reference


## Classes


Core classes


[WarmUpAuditor](WarmUpAuditor.md#ambdes.WarmUpAuditor)  
Warm-up auditor - records cumulative mean results at intervals.

[SimConfig](SimConfig.md#ambdes.SimConfig)  
Configuration for a simulation run.

[FitDist](FitDist.md#ambdes.FitDist)  
Fit distributions using sim-tools and compare samples to real data.

[Model](Model.md#ambdes.Model)  
Discrete-event simulation model for generating patient calls.

[Patient](Patient.md#ambdes.Patient)  
Represents a patient who has called 999.

[Results](Results.md#ambdes.Results)  
Simulation output for a single model run.

[UtilisationCalculator](UtilisationCalculator.md#ambdes.UtilisationCalculator)  
Compute time-weighted ambulance utilisation from an event log.

[Runner](Runner.md#ambdes.Runner)  
Run the simulation for one or more replications.


## Functions


Public functions


[plot_warm_up()](plot_warm_up.md#ambdes.plot_warm_up)  
Plot warm-up trajectories for one metric and response category.

[run_warm_up_audit()](run_warm_up_audit.md#ambdes.run_warm_up_audit)  
Run warm-up audit for one or more replications (can run in parallel).

[build_arrival_config()](build_arrival_config.md#ambdes.build_arrival_config)  
Determine arrival parameters and create config dict.

[fit_config()](fit_config.md#ambdes.fit_config)  
Fit distributions for each metric and category from raw time data.

[plot_metric_kde()](plot_metric_kde.md#ambdes.plot_metric_kde)  
Plot KDE curve by category (C1-C4).

[plot_observed_fitted()](plot_observed_fitted.md#ambdes.plot_observed_fitted)  
Plot overlaid comparison of observed vs fitted data.


## Constants


Module-level constants and data


[DISTRIBUTIONS](DISTRIBUTIONS.md#ambdes.DISTRIBUTIONS)
