Mark Clements
2023-Feb-21 15:47 UTC
[Rd] User-defined RNG with the standalone Rmath library
As a follow-up: I provide examples using the standalone Rmath library with the Mersenne Twister RNG at https://gist.github.com/mclements/3668c89d73e4504f323ca57a71c65602 and https://github.com/mclements/rmath_mt/ Note that rwilcox() uses R_unif_index(), which needs to be re-defined so that the [dpqr]wilcox functions are available when using a user-defined RNG. The sections in the R manuals describing the standalone Rmath library could note this need. The code above compiles on Ubuntu 22.04 LTS on x86_64 using both src/nmath/standalone/* and using the r-mathlib package on Debian. -- Mark N?r du skickar e-post till Karolinska Institutet (KI) inneb?r detta att KI kommer att behandla dina personuppgifter. H?r finns information om hur KI behandlar personuppgifter<https://ki.se/medarbetare/integritetsskyddspolicy>. Sending email to Karolinska Institutet (KI) will result in KI processing your personal data. You can read more about KI?s processing of personal data here<https://ki.se/en/staff/data-protection-policy>.