merge3 {cartools}R Documentation

merge3 produces t-x trajectories for a pair of lead and following vehicles for brktrial3.

Description

merge3 produces t-x trajectories for a pair of lead and following vehicles for brktrial3.

Usage

merge3(i,df1,df2,leff,step,xfunnel,usd,ylim,type)

Arguments

i

vehicle, a number

df1

leading vehicle, a matrix

df2

following vehicle, a matrix

leff

vehicle length, a number

step

time-step size, a number

xfunnel

upstream location of bottleneck taper, a number

usd

speed volatility (mph) for umn, a number

ylim

for plot, a vector

type

TRUE to create plots or FALSE otherwise, a logical

Value

The merge3, a wrapper function for bmfree2, xabparam and hsafe, returns a smooth hsafe rule t-x trajectory. for the following vehicle. The lead vehicle trajectory is not affected.


[Package cartools version 0.1.0 Index]