Learn R Programming

cartools (version 0.1.0)

brktrials2: brktrials2 produces t-x trajectories for lead and following vehicles at a bottleneck

Description

brktrials2 produces t-x trajectories for lead and following vehicles at a bottleneck

Usage

brktrials2(tend, umn, usd, xstart, xfunnel, leff, lane, step, type)

Arguments

tend

end time for a simulation run, a number

umn

start speed (mph) for vehicle in lane 1, a number

usd

speed volatility for umn, a number

xstart

a vector of nveh start locations, (feet), a vector

xfunnel

upstream location where the lane drop starts (feet), a number

leff

effective vehicle length(feet), a number

lane

a vector of nveh numbers, a vector

step

size in seconds, a number

type

0 no plots, 1 prediction plot, 2 all plots, a number

Value

brktrials2 returns t-x trajectories of nveh vehicles at a bottleneck.

Examples

Run this code
# NOT RUN {
brktrials2(30, 41, 11, xstart, -500, 14, lane, 0.5, 1)
# }

Run the code above in your browser using DataLab