search for: usier

Displaying 5 results from an estimated 5 matches for "usier".

Did you mean: user
2016 Jul 01
2
Calling C implementations of rnorm and friends
.... This means that you *can* do > this by using stats:::C_rnorm. > > That said, it's not exported, which means that it's not supported to do > this. So your package likely would not be allowed on CRAN, for example. > > Best, > ~G > On Jun 30, 2016 2:08 PM, "Luis Usier" <luis.henrique.usier at gmail.com> > wrote: > >> Hi all, >> >> Looking at the body for the function rnorm, I see that the body of the >> function is: >> >> .Call(C_rnorm, n, mean, sd) >> >> I want to implement functions that gene...
2016 Jul 01
1
Calling C implementations of rnorm and friends
...ell, For this particular use case why not just transform the parameters at the R level and then call the existing function? Is there not a closed form mapping? ~G On Jul 1, 2016 2:50 PM, "Joshua Ulrich" <josh.m.ulrich at gmail.com> wrote: > On Fri, Jul 1, 2016 at 6:13 AM, Luis Usier > <luis.henrique.usier at gmail.com> wrote: > > Gabriel, > > > > Thanks for that! I guess I really should have figured that one out > sooner, > > huh? > > > > I understand why that wouldn't be CRAN-compliant. But then, what *is* the > > prop...
2016 Jul 01
0
Calling C implementations of rnorm and friends
On Fri, Jul 1, 2016 at 6:13 AM, Luis Usier <luis.henrique.usier at gmail.com> wrote: > Gabriel, > > Thanks for that! I guess I really should have figured that one out sooner, > huh? > > I understand why that wouldn't be CRAN-compliant. But then, what *is* the > proper way to do it? Is there any way I can call...
2016 Jun 30
2
Calling C implementations of rnorm and friends
...erizing rbeta by the mean and sample size rather than by the number of successes and failures and rgamma by the mean and total time elapsed instead of the number of events. Once I understand how the C source code works, it would be hopefully not very difficult to reparameterize them. Thanks, Luis Usier [[alternative HTML version deleted]]
2016 Jun 30
0
Calling C implementations of rnorm and friends
...is a symbol but it's not exported. This means that you *can* do this by using stats:::C_rnorm. That said, it's not exported, which means that it's not supported to do this. So your package likely would not be allowed on CRAN, for example. Best, ~G On Jun 30, 2016 2:08 PM, "Luis Usier" <luis.henrique.usier at gmail.com> wrote: > Hi all, > > Looking at the body for the function rnorm, I see that the body of the > function is: > > .Call(C_rnorm, n, mean, sd) > > I want to implement functions that generate normal (and other) random > varia...