Tutorial Percent Followers

Main Page > Tutorials > Tutorial: Performance Measures

Percent Followers Percent Followers is the percentage of vehicles within simulation with a headway of 2.5 seconds or less and corresponds to headway distribution and platooning Percent Followers  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 Percent Followers that matches values in Detector-AggregateMeasures.csv File

Calculations in R,
 * Filters out data that is in warm-up time
 * Count of vehicles in simulation is calculated
 * Count of vehicles in a following state is calculated (vehicles with a headway of 2.5 seconds or less)
 * The ratio of following vehicles to total vehicles within simulation is calculated
 * Percent Followers is then calculated by $$ \frac{Follower Count}{SimVehicleCount} \times 100$$