Tutorial Follower Density

Main Page > Tutorials > Tutorial: Performance Measures

Follower Density  Follower Density  is the density multiplied by the proportion of followers It is calculated from the Link_Lane_Detector output file to match the Follower Density given in Detector Aggregate output file Take note of warm-up time and simulation time, as this will be needed later
 * Run simulation in SwashSim

To Run R Script
 * Set working directory to location of SwashSim output files
 * Input Link_Lane_Detector file that you would like to determine Percent Followers for
 * Input Warm-Up time in seconds
 * Input Simulation time in seconds
 * R will output Follower Density that matches values in Detector Aggregate File

Using R,
 * SimVehicleCount determines the total number of vehicles within the simulation, by filtering out the vehicles within the warm-up time
 * FollowerCount determines the total number of vehicles that are following with a headway of 2.5 seconds or less
 * AverageSpeed is calculated by taking the mean of the given speeds
 * Simulation Duration is used convert simulation time to an hourly rate
 * Follower Density is then calculated by $$ \frac{Follower Count}{SimVehicleCount}\times SimVehicleCount \times \frac{(3600/SimulationDuration)}{AverageSpeed}$$