diff --git a/DESCRIPTION b/DESCRIPTION index 16d17e1..1ceaad2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: dqrng Type: Package Title: Fast Pseudo Random Number Generators -Version: 0.0.2 +Version: 0.0.3 Authors@R: c( person("Ralf", "Stubner", email = "ralf.stubner@daqana.com", role = c("aut", "cre")), person("daqana GmbH", role = "cph"), diff --git a/cran-comments.md b/cran-comments.md index a27529f..cda5d17 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,22 +1,25 @@ ## Resubmission This is a resubmission. In this version I have: -* Removed the redundant "for R" from the title. - -* Included the actual algorithms including citation information - in the 'Description' field of the DESCRIPTION file. - -* Changed the license of my contributions from GPL (>=2) to AGPL-3. +* Patched the included PCG RNG to compile on Solaris ## Test environments -* local Debian install, R 3.5.0 -* Ubuntu on travis-ci, R 3.5.0, R 3.3.3, R-devel -* MacOS on travis-ci, R 3.5.0 -* Windows on AppVeyor, R 3.5.0 -* Windows and Linux with R 3.5.0 and R-devel via rhub::check_for_cran() +* local: Debian stable with R 3.5.0 +* Travis-CI: + * Ubuntu Trusty, R 3.5.0, R 3.3.3, R-devel + * MacOS, R 3.5.0 +* AppVeyor: Windows, R 3.5.0 +* winbuilder: Windows, R-devel +* r-hub.io: + * Windows, R-devel + * Ubuntu, gcc, R-release + * Fedora, clang, R-devel + * Solaris, R-patched ## R CMD check results 0 errors | 0 warnings | 1 note -* This is a new release. +* Days since last update: 3 + +=> Submission fixes compilation ERROR on Solaris diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index bd4ca17..5b0b2be 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -55,7 +55,7 @@ dqrng - 0.0.2 + 0.0.3 @@ -108,7 +108,7 @@

License

Files: * Copyright: 2018 Ralf Stubner (daqana GmbH) -License: GPL (>= 2) +License: AGPL-3 diff --git a/docs/articles/dqrng.html b/docs/articles/dqrng.html index a9768fe..6236015 100644 --- a/docs/articles/dqrng.html +++ b/docs/articles/dqrng.html @@ -29,7 +29,7 @@ dqrng - 0.0.2 + 0.0.3 @@ -66,7 +66,7 @@

Fast Pseudo Random Number Generators for R

Ralf Stubner

-

2018-05-08

+

2018-05-14

@@ -115,7 +115,7 @@

system.time(cat("pi ~= ", piR(N), "\n")) #> pi ~= 3.140899 #> User System verstrichen -#> 1.062 0.107 1.170 +#> 0.755 0.016 0.771

Using dqrng is about three times faster:

library(dqrng)
 dqRNGkind("Xoroshiro128+")
@@ -123,28 +123,28 @@ 

system.time(cat("pi ~= ", piR(N, rng = dqrunif), "\n")) #> pi ~= 3.140501 #> User System verstrichen -#> 0.286 0.112 0.398

+#> 0.210 0.020 0.229

Since the calculations add a constant off-set, the speed-up for the RNGs alone has to be even greater:

system.time(runif(N))
 #>        User      System verstrichen 
-#>       0.406       0.025       0.434
+#>       0.258       0.012       0.270
 system.time(dqrunif(N))
 #>        User      System verstrichen 
-#>       0.052       0.024       0.076
+#> 0.034 0.008 0.042

Similar for the exponential distribution:

system.time(rexp(N))
 #>        User      System verstrichen 
-#>       0.589       0.011       0.601
+#>       0.420       0.004       0.424
 system.time(dqrexp(N))
 #>        User      System verstrichen 
-#>       0.090       0.029       0.118
+#> 0.054 0.008 0.062

And for the normal distribution:

system.time(rnorm(N))
 #>        User      System verstrichen 
-#>       0.946       0.008       0.953
+#>       0.598       0.000       0.598
 system.time(dqrnorm(N))
 #>        User      System verstrichen 
-#>       0.109       0.024       0.133
+#> 0.068 0.004 0.072

diff --git a/docs/articles/index.html b/docs/articles/index.html index eabc033..8791e68 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -55,7 +55,7 @@ dqrng - 0.0.2 + 0.0.3

diff --git a/docs/authors.html b/docs/authors.html index 94b3fb7..d5310c2 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -55,7 +55,7 @@ dqrng - 0.0.2 + 0.0.3 diff --git a/docs/index.html b/docs/index.html index dc345ce..0b6f8a7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,15 +5,24 @@ -Fast Pseudo Random Number Generators for R • dqrng +Fast Pseudo Random Number Generators • dqrng - + + header only libraries: The PCG family by O'Neill (2014 + <https://www.cs.hmc.edu/tr/hmc-cs-2014-0905.pdf>) as well as + Xoroshiro128+ and Xoshiro256+ by Blackman and Vigna (2018 + <arXiv:1805.01407>). In addition fast functions for generating random + numbers according to a uniform, normal and exponential distribution + are included. The latter two use the Ziggurat algorithm originally + proposed by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>). + These functions are exported to R and as a C++ interface and are + enabled for use with the 64 bit version of the Mersenne-Twister by + Matsumoto and Nishimura (1998 <doi:10.1145/272991.272995>), the + default 64 bit generator from the PCG family as well as Xoroshiro128+ + and Xoshiro256+.">