average_queue {queuecomputer} | R Documentation |
Compute time average queue length
Description
Compute time average queue length
Usage
average_queue(times, queuelength)
Arguments
times |
numeric vector of times |
queuelength |
numeric vector of queue lengths |
Examples
n <- 1e3
arrivals <- cumsum(rexp(n))
service <- rexp(n)
departures <- queue(arrivals, service, 1)
queuedata <- queue_lengths(arrivals, service, departures)
average_queue(queuedata$times, queuedata$queuelength)
[Package queuecomputer version 1.2.0 Index]