@@ -37,9 +37,9 @@ deterministically.
3737
3838The focus on this package is:
3939
40- - fast computation of departure times given arrival and service times,
41- and
42- - a flexible framework to allow for extensions such as server effects.
40+ - fast computation of departure times given arrival and service times,
41+ and
42+ - a flexible framework to allow for extensions such as server effects.
4343
4444It is up to the user to provide arrival and service times, and therefore
4545very complicated distributions can be simulated (by the user) and tested
@@ -189,26 +189,26 @@ head(arrivals_1)
189189# > [1] 100.7552 101.9368 102.0825 102.2223 102.6584 105.5534
190190head(queue_1 $ departures_df )
191191# > # A tibble: 6 x 6
192- # > arrivals service departures waiting system_time server
193- # > <dbl> <dbl> <dbl> <dbl> <dbl> <int>
194- # > 1 101. 0.189 101. -6.38e-15 0.189 1
195- # > 2 102. 2.57 105. 4.44e-15 2.57 2
196- # > 3 102. 1.69 104. 0 1.69 1
197- # > 4 102. 2.00 106. 1.55e+ 0 3.55 1
198- # > 5 103. 0.435 105. 1.84e+ 0 2.28 2
199- # > 6 106. 1.68 107. 0 1.68 2
192+ # > arrivals service departures waiting system_time server
193+ # > <dbl> <dbl> <dbl> <dbl> <dbl> <int>
194+ # > 1 101. 0.189 101. 0 0.189 1
195+ # > 2 102. 2.57 105. 4.44e-15 2.57 2
196+ # > 3 102. 1.69 104. 0 1.69 1
197+ # > 4 102. 2.00 106. 1.55e+ 0 3.55 1
198+ # > 5 103. 0.435 105. 1.84e+ 0 2.28 2
199+ # > 6 106. 1.68 107. 0 1.68 2
200200head(arrivals_2 )
201201# > [1] 120.3923 105.6711 227.5242 175.9008 339.9853 108.7119
202202head(queue_2 $ departures_df )
203203# > # A tibble: 6 x 6
204- # > arrivals service departures waiting system_time server
205- # > <dbl> <dbl> <dbl> <dbl> <dbl> <int>
206- # > 1 120. 5.16 126. -2.66e-15 5.16 1
207- # > 2 106. 1.58 107. 0 1.58 1
208- # > 3 228. 0.114 291. 6.32e+ 1 63.3 1
209- # > 4 176. 2.35 186. 8.02e+ 0 10.4 1
210- # > 5 340. 3.20 404. 6.13e+ 1 64.5 1
211- # > 6 109. 1.23 110. 0 1.23 1
204+ # > arrivals service departures waiting system_time server
205+ # > <dbl> <dbl> <dbl> <dbl> <dbl> <int>
206+ # > 1 120. 5.16 126. 0 5.16 1
207+ # > 2 106. 1.58 107. 0 1.58 1
208+ # > 3 228. 0.114 291. 63.2 63.3 1
209+ # > 4 176. 2.35 186. 8.02 10.4 1
210+ # > 5 340. 3.20 404. 61.3 64.5 1
211+ # > 6 109. 1.23 110. 0 1.23 1
212212
213213summary(queue_1 )
214214# > Total customers:
0 commit comments