a-b-street/abstreet

Better data viz for throughput

开放

#85 创建于 2020年6月23日

 (15 条评论) (0 个反应) (0 位负责人)Rust (256 个派生)batch import
good first issue

仓库指标

星标
 (6,779 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Throughput is the number of people crossing a road or intersection over time. Check out TimeSeriesCount in sim/src/analytics.rs.

The raw data is too big to store for most scenarios, so there's very basic compression into per-hour X mode counts. But the way that's later plotted in the live line plots (info panels for lanes and intersections) looks strange, because as the live sim progresses, the bucket for that hour fills up until it reaches the typical value at the end. It'd be better to store the more accurate shape of the throughput-over-time graph and make comparisons with that. I've tried using the lttb crate to do this, but the compressed shape only resembles the baseline by the end of the day.

That explanation was probably kind of nonsense, sorry. Basically, if you're interested in data viz, jump on this bug and I'll explain more clearly. :)

贡献者指南