GithubHelp home page GithubHelp logo

blaza / rcppziggurat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eddelbuettel/rcppziggurat

0.0 1.0 0.0 1.25 MB

Rcpp bindings for different Ziggurat RNG implementations

License: Other

R 11.38% Shell 0.28% C 5.56% C++ 82.78%

rcppziggurat's Introduction

RcppZiggurat Build Status License CRAN Downloads

Rcpp Bindings for Ziggurat RNGs

Overview

The RcppZiggurat package regroups a number of implementations of the 'Ziggurat' random number generator by Marsaglia and Tsang (JSS, 2000), both in the original version and via the update by Leong, Zhang, Lee, Luk and Villasenor (JSS, 2005).

The purpose of the package is to both study and time these implementations in order to provide a fast N(0,1) generator for use by R. The generators included in R are excellent and very diligently implemented, but not generally the fastest. This package aims to close the performance gap.

You should know what you are doing when deploying this package. If in doubt, stick with the default generators.

Vignette

The package contains a detailed vignette summarizing the methods, the implementation as well as the statistical properties (examined via three different tests) and the generator speed.

Status

The package currently contains six different implementations. Two are standard from the literature: the original Marsaglia and Tsang approach (which should not be used as the resulting generator has be improved as suggested by Leong et al.), the improved Leong et al variant, a version from the GNU GSL, a version from the GNU Gretl econometric program as well as a version from QuantLib.

Demo

The package contains several demo scripts. Try

R> demo(package="RcppZiggurat")

TODO

More testing never hurts, ...

More generators as e.g. the modified Ziggurat implementation suggested by Doornik (though his code is not under an open source licence)

Author

Dirk Eddelbuettel

License

GPL (>= 2)

rcppziggurat's People

Contributors

eddelbuettel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.