install.packages('cartools')accelpass function estimates the relative locations of two vehicles where one passes the other.brkdelay is a wrapper function for brktrials2.L is a matrix containing information about the lead vehicle. The bottleneck is located at x = 0.capacityplot creates a (k,Q*) plot indicating the success rate of sustaining capacity Q*cfanim uses a stochastic model of speed to describe driver's ability to maintain a speed u.brkdelay3 is a wrapper function for brktrials3.t2 is the intersection point of the following driver sight-line and lead vehicle x trajectory.
Lead vehicle location xl2 and speed ul2 at the intersection point, respectively.brksummary is a wrapper for accelpass and passplot.t5 when the following vehicle reaches the bottleneck or location x = 0.brktrials2 produces t-x trajectories for lead and following vehicles at a bottleneckformqueue function is used to explain queuing upstream of a bottleneck.h between the lead and following vehicles at time t. Lead and following vehicles use constant speed models, respectively.findt1 returns the deceleration time t1, the location xf1, and speed uf1
of the following vehicle at time t1.t5 when the following vehicle reaches the bottleneck or location x = 0.brktrials3setup produces t-x trajectories for lead and following vehicles at a bottlenecklanedf returns a vector of vehicles veh in lane.theta of a geometric Brownian motion model.h2 at time t2, the time the following vehicle driver sees the lead vehicle has decelerated.merge3 produces t-x trajectories for a pair of lead and following vehicles for brktrial3.merge produces t-x trajectories for a pair of lead and following vehicles.bmfree2 function returns a tux matrix of time t, speed u (fps)
and location x (feet).plotfollow3 adds a new trajectory to an existing graph.x given a geometric Brownian motion model and time t.leff is the effective length of a vehicle.passplot plots the data from brksummary, freeflowpass, decelmerge data frames.trajectoryab3 fits a second-order velocity model and produces a t-x trajectory
for vehicle = i where i = 3,4, ..., nveh.trial produces traffic performance information, stored in lists L and Fw
for lead and following vehicles, respectively/
L and Fw contain the information needed to graph a time-distance t-x trajectories for two vehicles.ggplot2 plot of crossover traffic data.brkcross0 estimates the time, speed and location that a vehicle crosses bottleneck location x = 0.t-x trajectory for the lead vehicle, vehicle = 1.findt1ab returns the time tf1 and the location xf1 and speed uf1
of the following vehicle when the driver begins to decelerate.findt2 returns the time t2 and xf2 when the following vehicle driver recognizes
the lead vehicle has decelerated.x using second-order speed function.animate_rr draws the path around the ring-road
using data LF from rrtrials.bmfree function returns a tux matrix of time t, speed u and location x values.dfmanager is a wrapper function for brktrials2xabmerge produces t-x trajectories for a pair of lead and following vehicles.t0 is the time the analysis is initiated.h between lead and following vehicles.
Speed u of lead vehicle is measured in fps.plottux produces t-u and t-x trajectories for a lead and following vehicles on a ring road,h between the lead and following vehicles at time t. Lead and following vehicles use gbm and constant speed models, respectively.l vehicle location xl3 at time t3.freeflowpass function estimates the relative locations of two vehicles where one passes the other.xstart is a vector that designates the start x location for the brktrials function.lane is a vector that designates the lane drivers are traveling in the brktrials function.u at time t using a geometric Brownian motion model.h0 at time t = 0.plotdesire3 creates t-x desire-line trajectories.h1 at time t1, the time the following vehicle initiates deceleration.mergedemo produces t-x trajectories for a pair of lead and following vehicles.h3 at time t3, the time the lead vehicle has decelerated to breakdown speed u0.t1 is time the following vehicle realizes the lead vehicle is decelerating.nopass produces t, u and x for lead and following vehicles downstream of a bottleneckplotupstream produces t-x trajectories for lead and following vehicles at a bottlenecksafecrossover a graph showing driver conflict of two vehicles changing lanes.schematic defines key features of a simple bottleneckl vehicle speed ul2 at time t2.rrtrials produces t-x trajectories for lead and following vehicles on a ring roadrun function is a wrapper for the trial and plotfollow3 functions.lfmatrix displays cflist, the lists L and Fw information
for lead and following vehicles, respectively.tuxvfix3 fixes hsafe violations for vehicle veh in matrix tuxv.u using second-order speed function.f vehicle speed uf3 at time t0.t-x trajectory for vehicle i = 2.l vehicle speed ul3 at time t3.rrheadway is a function to estimate the traffic flow q on a ring road.f vehicle location xf2 at time t2.zipper function can be used to simulate interaction among three vehicles in car following
on a single lane or three vehicles merging on a two-lane highway.rrheadwayu is a function used to find the speed u on a ring road at x = 0.speedboxplot plots the data from a data frame QUKtdayXf vehicle location xf3 at time t3.x distance traveled using a constant speed model.logisticmodel estimates the parameters of logistic regression model
using a binomial formula and logit link function for data QUKtdayX.trajectoryab fits a second-order velocity model and produces a t-x trajectory
for vehicle = i where i = 3,4, ..., nveh.theta of the lead vehicle.t2 is time the following vehicle realizes the lead vehicle is decelerating.vehdf selects information about vehicle veh
of the df matrix for analysis with the brktrials2 function.vehfix fixes hsafe violation with speed ufix and location xfix and yfix vectors from brktrials2plotmerge3 creates t-x safe headway trajectories.vehid selects information about vehicle veh
from the tuxv matrix for analysis with the brktrials3 function.speedts speed data used by speedtsplotspeedtsplot plots the data from the speedts data frame.plotoptimise produces t-x trajectories for nveh driversf vehicle speed uf1 at time t1.l vehicle location xl0 at time t0.vehtfix fixes hsafe violations for vehicle veh.f vehicle speed uf2 at time t2.l vehicle location xl1 at time t1.l vehicle location xl2 at time t2.t3 is time the lead vehicle completes deceleration.ubreakdown function generates a breakdown speed vector ubk assuming a lognormal distribution.usdBBridge function from Iacus.f vehicle speed uf0 at time t0.l vehicle speed ul0 at time t0.l vehicle speed ul1 at time t1.usdzipper function is used to perform a sensitivity analysis of a single vehicles
in traffic breakdown.f vehicle location xf0 at time t0.xabmerge3 produces t-x trajectories for a pair of lead and following vehicles.f vehicle location xf1 at time t1.a and b of a first-order acceleration model a + b * t.acceldown function estimates the relative locations of a vehicle downstream of a bottleneck.crossconflict a graph showing driver conflict of two vehicles changing lanes.brktrials3 produces t-x trajectories for lead and following vehicles at a bottleneckdecelmerge function estimates the relative locations of two vehicles where one passes the other.