Learn R Programming

cartools (version 0.1.0)

accelpass: The accelpass function estimates the relative locations of two vehicles where one passes the other.

Description

The accelpass function estimates the relative locations of two vehicles where one passes the other.

Usage

accelpass(tend, umn, usd, xstart, xfunnel, leff, lane, step)

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

start location for vehicle in lane 1 (feet), a number

xfunnel

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

leff

effective vehicle length(feet), a number

lane

number, a number

step

size in seconds, a number

Value

accelpass uses a stochastic model to show the locations of vehicle accelerating to pass another vehicle traveling side-by-side at the speed.

Examples

Run this code
# NOT RUN {
accelpass(30, 41, 11, -1000, -500, 14, 1, 2)
# }

Run the code above in your browser using DataLab