<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/rcppziggurat-0-1-5/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2018/06/10#rcppziggurat_0.1.5"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img alt="ziggurats" src="https://i2.wp.com/dirk.eddelbuettel.com/code/images/zigspeed.png?w=420" data-recalc-dims="1"></p>
<p>A maintenance release 0.1.5 of <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.ziggurat.html" target="_blank">RcppZiggurat</a> is now on the <a rel="nofollow" href="http://cran.r-project.org/" target="_blank">CRAN</a> network for <a rel="nofollow" href="http://www.r-project.org/" target="_blank">R</a>.</p>
<p>The <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.ziggurat.html" target="_blank">RcppZiggurat</a> package updates the code for the Ziggurat generator which provides very fast draws from a Normal distribution. The package provides a simple C++ wrapper class for the generator improving on the very basic macros, and permits comparison among several existing Ziggurat implementations. This can be seen in the figure where Ziggurat from this package dominates accessing the implementations from the <a rel="nofollow" href="http://www.gnu.org/software/gsl/" target="_blank">GSL</a>, <a rel="nofollow" href="http://quantlib.org/index.shtml" target="_blank">QuantLib</a> and <a rel="nofollow" href="http://gretl.sourceforge.net/" target="_blank">Gretl</a>—all of which are still way faster than the default Normal generator in R (which is of course of higher code complexity).</p>
<p>Per a request from <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a>, we changed the vignette to accomodate <code>pandoc 2.*</code> just as we did with <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2018/06/08#pinp_0.0.5" target="_blank">the most recent pinp release</a> two days ago. No other changes were made. Other changes that have been pending are a minor rewrite of DOIs in <code>DESCRIPTION</code>, a corrected state setter thanks to a PR by Ralf Stubner, and a tweak for function registration to have <code>user_norm_rand()</code> visible.</p>
<p>The <code>NEWS</code> file entry below lists all changes.</p>
<blockquote>
<h4>Changes in version 0.1.5 (2018-06-10)</h4>
<ul>
<li>
<p>Description rewritten using doi for references.</p>
</li>
<li>
<p>Re-setting the Ziggurat generator seed now correctly re-sets state (Ralf Stubner in <a rel="nofollow" href="https://github.com/eddelbuettel/rcppziggurat/pull/7" target="_blank">#7</a> fixing <a rel="nofollow" href="https://github.com/eddelbuettel/rcppziggurat/issues/3" target="_blank">#3</a>)</p>
</li>
<li>
<p>Dynamic registration reverts to manual mode so that user_norm_rand() is visible as well (<a rel="nofollow" href="https://github.com/eddelbuettel/rcppziggurat/issues/7" target="_blank">#7</a>).</p>
</li>
<li>
<p>The vignette was updated to accomodate pandoc 2* [CRAN request].</p>
</li>
</ul>
</blockquote>
<p>Courtesy of <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/" target="_blank">CRANberries</a>, there is also a diffstat report for the <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2018/06/10#RcppZiggurat_0.1.5" target="_blank">most recent release</a>. More information is on the <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.ziggurat.html" target="_blank">RcppZiggurat page</a>.</p>
<p>
This post by <a rel="nofollow" href="http://dirk.eddelbuettel.com/" target="_blank">Dirk Eddelbuettel</a> originated on his <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/" target="_blank">Thinking inside the box</a> blog. Please report excessive re-aggregation in third-party for-profit settings.</p>
<p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://dirk.eddelbuettel.com/blog/2018/06/10#rcppziggurat_0.1.5"> Thinking inside the box </a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/64RFKnQCA_A" height="1"></a></div>