APP Instructions
Introduction
This tool computes traffic data aggregations in a t wo different ways, one follows the Eddie’s generalized definitions and the other is the typically used in Traffic Management Centers (TMC)
Variable notation
- q → Flow
- v̄ → Average speed
- k → Density
- ρ → Occupancy
- l̄ → Average vehicle length
General app layout
The app has a top part, which let’s the user load their own data on the top left, provided that the guidelines given at the Input Data section are followed, and two sliders to select the aggregation periods of the two aggregation methods, the Eddie’s generalized definitions and the TMC aggregation method. See some details of each method at the end of this document. Following, the app has three tabs, which are briefly described following:
- Generalized Definitions tab let’s you comp are the data in four different preselected manners than can be selected to see how good the data is and how the Eddies generalized produces better results than the TM C. See the different at the end of this document
- Fundamental Diagram show the same data of the previous tab but in the density flow axis
- Introductions shows the current pdf document
Input data
The app let the user upload its own data to visualize. However, the application accepts only a limited amount of file formats that need to be formatted in a specific way in order to be read and processed properly. The accepted files are .csv, .txt, .xls or .xlsx files, and all of them must have the following fields o r columns, which will be the only ones read:
- datetime, this field needs to have a value of time, it can be either a full date , the hour of the day, or just a numeric value in seconds. The latter two will only produce valid results if the data does not span trough different days.
- speed, a numerical value in km/h, if data is provided in any other units, the results will be numerically worng
- occupancy, a numerical value of the time spent for each vehicle on the detection zone in miliseconds.
Data is input by either dragging the file to the Drag and drop or Select file, or other clicking it and selecting the file on your hard drive.
Eddie’s generalized definitions
Eddie’s generalized definitions require to group the traffic data from individual vehicles into samples of equal size, these samples a re called bin, and the number of vehicles in each sample is the bin size, also refer to as 𝑛 in the equations. Thus, a bin size needs to be selected, and this is done through the top slider. I t is recommended to chose values between 30 and 50. Otherwise t he sample would be too small, or it will take too long to gather that many vehicles. Still, those values are allowed at the app to show the effects of selecting this bin size will have. The generalized definitions allow to compute the variables per each bin 𝑖 as described in the following equations. Note that Δ𝑡𝑖 is the time between the first and last vehicle, and 𝑡𝜌,𝑗 is the occupancy time of any vehicle 𝑗 over the detector, i.e. the occupancy time.
qi = nΔti
ρi = n∑j=1tρ,jΔti
v̄i = nn∑j=11vj
l̄i = n∑j=1tρ,jn∑j=11vj
ki = ρil̄i = n∑j=11vjΔti
TMC definitions
qi = miΔt
ρi = mi∑j=1tρ,jΔt
v̄i = mi∑j=1vjmi
l̄i = mi∑j=1vj tρ,jmi
ki = ρil̄i