<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>I have a current project desire to move something like R’s integrate function inside a loop in Rcpp code.  The performance hit to call back to R seems to kill the advantage of Rcpp in the first place.  Actually my integrand is t*pdf(t), very similar indeed
to pweibull which integrates pdf(t).  It has been hard to find previous discussion on this topic since the title of articles and book include the word Integration in  another context.</div>
<div> </div>
<div>I realize that eventually R’s integrate function calls rdqags (over a definite interval), but there is a lot of memory management that is taken care of before the call.  This is over my head.</div>
<div> </div>
<div>I could try to incorporate the GSL, but this too seems daunting (even with RcppGSL).  I think there may be integration support in the boost headers, but my head is too small for this yet.</div>
<div> </div>
<div>Any ideas that could help me?</div>
<div> </div>
<div>Dave Silkworth</div>
<div> </div>
</span></font>
</body>
</html>