Abby, that is a fantastic suggestion! It seems obvious now that you've said
it. Why didn't I think of that?
Thank you,
Tommy
On Fri, Jul 31, 2020 at 12:01 AM Abby Spurdle wrote:
> > 3. In C++: Draw millions of times from a Categorical(p) distribution,
> where
> > "p" is recalculated after each
reinventing the wheel, but instead relying
on the accumulated experience of the folks that are writing these RNGs.
Knowing more about the bigger use, does this still strike you as obviously
problematic?
Best,
Tommy
On Thu, Jul 30, 2020 at 4:49 PM Duncan Murdoch
wrote:
> On 30/07/2020 4:
way. Is it good enough for the way you plan to use
> it? Maybe.
>
> Duncan Murdoch
>
> On 30/07/2020 3:05 p.m., Tommy Jones wrote:
> > Hi,
> >
> > I am constructing a function that does sampling in C++ using a non-R RNG
> > stream for thread safety reasons
Hi,
I am constructing a function that does sampling in C++ using a non-R RNG
stream for thread safety reasons. This C++ function is wrapped by an R
function, which is user facing. The R wrapper does some sampling itself to
initialize some variables before passing them off to C++. So that my users