predict.traveltimeHMM.HMM | R Documentation |
traveltimeHMM
model object of the HMM familyPredict the travel time for a trip using a traveltimeHMM
model object of the HMM family
## S3 method for class 'traveltimeHMM.HMM' predict(object, tripdata, starttime, n, logE, time_bins = time_bins, ...)
object |
A model object (a list) provided through the execution of
function |
tripdata |
A data frame of road links with information on each link's traversal. Columns minimally includes objects 'linkID' and 'length', and the latter must have the same length. Rows must be in chronological order. |
starttime |
The start date and time for the very first link of the trip, in POSIXct format. |
n |
Number of samples. Default is 1000. |
logE |
Point estimate of trip effects, in the form of a numerical vector of size |
time_bins |
a functional map between real time and time bins, see '?rules2timebins'. |
... |
not used. |
predict.traveltimeHMM.HMM
returns a vector of size n
of representing the point prediction of total travel time, in seconds, for each run.
Woodard, D., Nogin, G., Koch, P., Racz, D., Goldszmidt, M., Horvitz, E., 2017. Predicting travel time reliability using mobile phone GPS data. Transportation Research Part C, 75, 30-44.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.