-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalc_queue_load.Rd
executable file
·31 lines (29 loc) · 1.07 KB
/
calc_queue_load.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_queue_load.R
\name{calc_queue_load}
\alias{calc_queue_load}
\title{Calculate Queue Load}
\usage{
calc_queue_load(demand, capacity)
}
\arguments{
\item{demand}{Numeric value of rate of demand in same units as target wait -
e.g. if target wait is weeks, then demand in units of patients/week.}
\item{capacity}{Numeric value of the number of patients that can be served
(removals) from the waiting list each week.}
}
\value{
Numeric value of load which is the ratio between demand and capacity.
}
\description{
Calculates the queue load. The queue load is the number of
arrivals that occur for every patient leaving the queue (given that the
waiting list did not empty). It could also be described as the rate of
service at the queue. The queue load is calculated by dividing the demand
by the capacity: queue_load = demand / capacity.
}
\examples{
# If 30 patients are added to the waiting list each week (demand) and 27
# removed (capacity) this results in a queue load of 1.11 (30/27).
calc_queue_load(30, 27)
}