Skip to content

Commit a46b8a6

Browse files
committed
queuecomputer
Version 1.2.0
1 parent 21a9f30 commit a46b8a6

File tree

4 files changed

+30
-20
lines changed

4 files changed

+30
-20
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: queuecomputer
22
Title: Computationally Efficient Queue Simulation
3-
Version: 1.1.1
3+
Version: 1.2.0
44
Authors@R: c(person("Anthony", "Ebert", email = "[email protected]",
55
role = c("aut", "cre"), comment=c(ORCID="0000-0003-3002-6300")),
66
person("Kerrie", "Mengersen", role = "ths"),

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# queuecomputer 1.2.0
2+
3+
* Fix CRAN warning of about bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
4+
* Improved documentation of `queue_step()`
5+
* Waiting times are now forced to be zero since floating-point error can make waiting times slightly negative.
6+
17
# queuecomputer 1.1.0
28

39
* Fix bug with integer inputs #34, particularly if server input is of class integer.

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ deterministically.
3737

3838
The 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

4444
It is up to the user to provide arrival and service times, and therefore
4545
very 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
190190
head(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
200200
head(arrivals_2)
201201
#> [1] 120.3923 105.6711 227.5242 175.9008 339.9853 108.7119
202202
head(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

213213
summary(queue_1)
214214
#> Total customers:

cran-comments.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 1.2.0
2+
3+
Fix CRAN warning of about bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
4+
15
# Version 1.0.0
26

37
The DOI in the CITATION is for a new JSS publication that will be registered after publication on CRAN.

0 commit comments

Comments
 (0)