[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Can you clarify how density is computed for lanes and edges
|
Hello Jakob,
thanks a lot, now it is more clear.
The problem is that I was assuming that sampledSecond is just the number of seconds there were vehicles on the lane, not the sum of the number of seconds of every vehicle on the lane. I was assuming that if your measure interval is, say 10 s, then sampledSeconds<=10 always. Even though it is on the wiki, I think it is not clear enough.
Best regards,
Esteban
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On 7 March 2018 10:10 AM, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:
Hello,
I admit the formula is a bit hard to read.
Consider an aggregation period of 1s. In that case each vehicle on the lane results in 1 sampled second so sampleSeconds gives the number of vehicles on the lane.
Since the length of the lane is in m we get the density #veh/m by dividing by myLaneLength.
To get #veh/km we multiply by 1000
For longer periods, if the number of vehicle on the lane stays constant, it should be obvious that the sampleSeconds is a multiple of the number and the period and the formula is correct as well.
If the number of vehicles changes during the aggregation period, the formula gives the appropriate average.
regards,
Jakob