violations: 'violations' produces of safe and unsafe headways for a pair...

Description Usage Arguments Value

View source: R/violations.R

Description

violations produces of safe and unsafe headways for a pair of lead and following vehicles.

Usage

1
violations(df1, df2, leff)

Arguments

df1

leading vehicle, a matrix

df2

following vehicle, a matrix

leff

vehicle length, a number

Value

violations is used to determine a following vehicle is violating the safe headway rule. violations returns a logical, TRUE when a violation occurs and FALSE otherwise.


PJOssenbruggen/Basic documentation built on May 25, 2019, 1:20 p.m.