predict.traveltimeCLT.trip_specific returns the predicted mean and variance of travel time for a specific route and start time.

# S3 method for traveltimeCLT.trip_specific
predict(
  starttime,
  route,
  distance,
  network_parameters,
  rho = 1,
  finaly.only = TRUE,
  timebin_rules = NULL,
  pred.type = c("both", "mean-only")
)

Arguments

starttime

A POSIXlt value representing the start time of the trip.

route

Vector of links in the order of travel.

distance

Vector of distances to be traveled on each on the links in route.

network_parameters

An output of link_mean_variance, see ?link_mean_variance.

rho

Vector of auto-correlation in the order of lag, starting at lag 0 for no correlation.

timebin_rules

A list of time bin rules to be passed to rules2timebins, see ?rules2timebins.

pred.type

'both' to predict the mean and variance of travel time and 'mean-only' for the mean. Default 'both'.

final.only

Logical indicating whether to return a sequence of means and standard deviations, in the order of route, or only the final ETA and standard deviation. Default final.only=TRUE.

Value

Returns a list of predictions.

Examples

if (FALSE) {

}