Skip to main content

Module calibration

Module calibration 

Source
Expand description

Scientific calibration helpers for pedestrian fundamental diagrams.

The microscopic models in this crate keep their literature defaults in their own Params structs. This module provides an explicit calibration layer for deployments that need a published speed-density envelope, starting with Weidmann’s 1993 indoor-corridor fundamental diagram.

Structs§

CalibrationPoint
A density/speed observation used by calibration reports.
CalibrationReport
Error summary against a reference fundamental diagram.
WeidmannCurve
One empirical speed-density reference curve.

Functions§

apply_weidmann_speed_cap
Clamp every pedestrian velocity to the Weidmann speed at density.
apply_weidmann_speed_target
Set every pedestrian velocity to the Weidmann speed at density.
density_for_area
Density implied by count pedestrians over area_m2 square metres.
mean_speed
Mean scalar speed of the supplied pedestrians.