dabreegster / odjitter

Disaggregate zone-based origin/destination data to specific points
Apache License 2.0
12 stars 6 forks source link

Flow disagragation returns non-whole numbers #44

Open mem48 opened 1 year ago

mem48 commented 1 year ago

When splitting up number of trips I get non-whole number results.

e.g. A flow of 309 people split into 11 lines 309 / 11 = 28.09091

I think it would make more sense to return 10 x 28 and 1 x 29

0.09 trips does not make sence and if rounded all results will be 28 meaning a trip has been lost (28 * 11 = 308).

Can there be an option to return whole numbers?

Robinlovelace commented 1 year ago

I think this is a reasonable request. Should be easy to round and then top-up/down to ensure totals are the same.