Git Product home page Git Product logo

dsfmtjump.jl's Introduction

dSFMTjump

A Julia package for creating distinct substreams from a whole dSFMT period.

Build Status

For a given integer N, a jump function executes the N-step jump which allows to obtain the state of dSFMT after N steps generation. This is equivalent to call the dSFMT double precision floating point number generation 2N times with discarding the outputs. A typical usage of a jump function is to obtain distinct substreams from a whole period of pseudorandom number sequence generated by dSFMT.

Julia uses dSFMT implementation of Mersenne Twister PRNG as a default RNG. Julia binary is compiled with dSFMT that has period 19937. By default dSFMTjump package uses the same period as Julia PRNG and a default jump polynomial has 10^20 steps.

Refer to dSFMT Jump for a jump polynomial generation process.

Based on an original version of dSFMTJump by Mutsuo Saito & Makoto Matsumoto.

Usage

Call jump function with PRGN seed value, number or generated substreams within the PRNG period and optionally jump polynomial string that could be different from default one. The default jump polynomial has 10^20 steps.

The jump call returns array of Mersenne Twister PRNG objects which are initialized with the same seed value and pointed to a different places, which stand apart at a number of states specified by a jump polynomial, in a particular period.

using dSFMTjump
mts = jump(seed, number_of_substreams) # uses default jump polynomial
# or
mts = jump(seed, number_of_substreams, jumppoly="<jump_polynomial>")

dsfmtjump.jl's People

Contributors

wildart avatar

Stargazers

 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.