Hi everyone,

I have built an R package and for the sake of speed I have decided to rewrite 
some part of the code in C++.  In my original R code I use the pnorm, qnorm, 
rnorm, pgamma, dgamma, rgamma, rbeta and runif function.  First I was thinking 
in going with the boost libraries, but I noticed the functions described above 
are available within the R.h header file (or is it Rmath.h?).

So my question is the following.  Would my code be faster if I install the 
appropriate boost libraries (distributions) or if I stick with R.h's functions?

Thanks!


******************************************************************************************************************************
IAN SCHILLER, M.Sc.

Statistical research assistant,
Division of Clinical Epidemiology, McGill University Health Center

Assistant de recherche en statistiques,
Département d'Épidémiologie Clinique, Centre Universitaire de Santé Mcgill

Tel: 514 934 1934 ext. 36925
Email: ian.schil...@clinepi.mcgill.ca<mailto:ian.schil...@clinepi.mcgill.ca>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to