View source: R/core_queuefunctions.R
lag_step | R Documentation |
Add lag to vector of arrival times.
lag_step(arrivals, service)
arrivals |
Either a numeric vector or an object of class |
service |
A vector of service times with the same ordering as arrivals |
A vector of response times for the input of arrival times and service times.
wait_step
, queue_step
.
# Create arrival times arrivals <- rlnorm(100, meanlog = 3) # Create service times service <- rlnorm(100) lag_step(arrivals = arrivals, service = service) # lag_step is equivalent to queue_step with a large number of queues, but it's faster to compute. cbind(queue(arrivals, service = service, servers = 100), lag_step(arrivals = arrivals, service = service))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.