GithubHelp home page GithubHelp logo

global19-atlassian-net / bitgenerators Goto Github PK

View Code? Open in Web Editor NEW

This project forked from numpy/bitgenerators

0.0 2.0 0.0 412 KB

Additional bitgenerators for the random generators within numpy.

License: BSD 3-Clause "New" or "Revised" License

Python 28.22% C 69.11% Objective-C 1.76% C++ 0.91%

bitgenerators's Introduction

BitGenerators for numpy.random.Generator

The NumPy random number generator accepts a BitGenerator that provides a bitstream. This package provides a variety of BitGenerators.

  • MT19937 - The standard Python BitGenerator. Produces identical results to Python using the same seed/state. Adds a MT19937.jumped function that returns a new generator with state as-if 2**128 draws have been made.
  • `DSFMT - SSE2 enabled versions of the MT19937 generator. Probably behind as many papers as any other generator. Good performance on any CPU with SSE2 or Altivec. See the dSFMT authors' page.
  • Xoshiro256 and Xoshiro512 - The most recently introduced XOR, shift, and rotate generator. Fast and popular bit generator, despite some reservations in rare corner cases. More information about these bit generators is available at the xorshift, xoroshiro and xoshiro authors' page.
  • ThreeFry and Philox - counter-based generators capable of being advanced an arbitrary number of steps or generating independent streams. Very popular in machine learning. See the Random123 page for more details about this class of bit generators.
  • PCG32 and PCG64 are permutation-congruential generators with very good statistical properties. More information is available on the PCG authors' page.
  • GJrand, SFC64, JSF64 - Fast chaotic 256-bit BitGenerators architected fairly similarly, based on random invertible mappings. They are very well-tested. JSF64 has been analyzed for a long time. SFC64 seems to be inspired by that work; it was written by the author of PractRand so it too has been pretty thoroughly tested.

Installation from source

pip install .

Building

python setup.py bdist_wheel` Then upload the wheel

Testing

pip install . --target /tmp/tmpsite
PYTHONPATH=/tmp/tmpsite pytest tests

bitgenerators's People

Contributors

mattip avatar

Watchers

 avatar  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.