Description Usage Arguments Value
violations
produces of safe and unsafe headways for a pair of lead and following vehicles.
1 | violations(df1, df2, leff)
|
df1 |
leading vehicle, a matrix |
df2 |
following vehicle, a matrix |
leff |
vehicle length, a number |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.