[This article was first published on R on Ralf Stubner, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I have blogged about dqrng before, but I forgot to write about the v0.2.0 release, even though that brought a lot of changes including the fast sampling methods to CRAN:
- Add R side support for selecting multiple streams for parallel usage.
- Implement
long_jump()
for Xo(ro)shiro as alternative tojump()
providing fewer streams with longer period. - Handle R’s RNG scope properly during initialisation.
- New functions
dqsample
anddqsample.int
using an unbiased sampling algorithm. - Use
R_unif_index()
instead ofunif_rand()
to retrieve random data from R’s RNG ingenerateSeedVectors()
. - Scalar RNGs in the C++ API:
dqrng::runif
,dqrng::rnorm
anddqrng::rexp
The list of changes for v0.2.1, which made it onto CRAN today, is much shorter:
- Make template specialisations
inline
and include required standard headers (Aaron Lun in #29 fixing #28) - Add workaraound for new C++ compiler with old libc (#30 fixing #27)
- Update maintainer’s email address
To leave a comment for the author, please follow the link and comment on their blog: R on Ralf Stubner.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.