@@ -8,7 +8,7 @@ generators in Python and Numpy.
8
8
9
9
Features
10
10
11
- - Immediate drop in replacement for Numy 's RandomState
11
+ - Immediate drop in replacement for NumPy 's RandomState
12
12
13
13
.. code :: python
14
14
@@ -22,7 +22,7 @@ Features
22
22
same seed, same random numbers).
23
23
- Support for random number generators that support independent streams
24
24
and jumping ahead so that substreams can be generated
25
- - Faster ranomd number generations, especially for Normals using the
25
+ - Faster random number generations, especially for Normals using the
26
26
Ziggurat method
27
27
28
28
.. code :: python
@@ -46,18 +46,19 @@ in addition to the MT19937 that is included in NumPy. The RNGs include:
46
46
- `PCG32 <http://www.pcg-random.org/ >`__ and
47
47
`PCG64 <http:w//www.pcg-random.org/ >`__
48
48
- `MRG32K3A <http://simul.iro.umontreal.ca/rng >`__
49
- - A multiplicative lagged fibonacci generator (LFG(31 , 1279, 861, \* ))
49
+ - A multiplicative lagged fibonacci generator (LFG(63 , 1279, 861, \* ))
50
50
51
51
Differences from ``numpy.random.RandomState ``
52
52
---------------------------------------------
53
53
54
54
New Features
55
55
~~~~~~~~~~~~
56
56
57
- - ``stanard_normal ``, ``normal ``, ``randn `` and ``multivariate_normal ``
58
- all support an additional ``method `` keyword argument which can be
59
- ``inv `` or ``zig `` where ``inv `` corresponds to the current method
60
- and ``zig `` uses tha much faster (100%+) ziggurat method.
57
+ - ``standard_normal ``, ``normal ``, ``randn `` and
58
+ ``multivariate_normal `` all support an additional ``method `` keyword
59
+ argument which can be ``bm `` or ``zig `` where ``bm `` corresponds to
60
+ the current method and ``zig `` uses the much faster (100%+) ziggurat
61
+ method.
61
62
62
63
New Functions
63
64
~~~~~~~~~~~~~
@@ -88,13 +89,13 @@ Status
88
89
Version
89
90
-------
90
91
91
- The version matched the latest verion of NumPy where
92
+ The version matched the latest version of NumPy where
92
93
``randomstate.prng.mt19937 `` passes all NumPy test.
93
94
94
95
Documentation
95
96
-------------
96
97
97
- A occasionally updated build of the documentation is available on `my
98
+ An occasionally updated build of the documentation is available on `my
98
99
github pages <http://bashtage.github.io/ng-numpy-randomstate/> `__.
99
100
100
101
Plans
@@ -103,7 +104,7 @@ Plans
103
104
This module is essentially complete. There are a few rough edges that
104
105
need to be smoothed.
105
106
106
- - Stream support for MLFG and MRG32K3A
107
+ - Stream support for MLFG
107
108
- Creation of additional streams from a RandomState where supported
108
109
(i.e. a ``next_stream() `` method)
109
110
@@ -151,7 +152,7 @@ Windows
151
152
Either use a binary installer or if building from scratch using Python
152
153
3.5 and the free Visual Studio 2015 Community Edition. It can also be
153
154
build using Microsoft Visual C++ Compiler for Python 2.7 and Python 2.7,
154
- although some modifications are needed to distutils to find the
155
+ although some modifications are needed to `` distutils `` to find the
155
156
compiler.
156
157
157
158
Using
@@ -196,27 +197,27 @@ NumPy's mt19937.
196
197
197
198
::
198
199
199
- Speed-up relative to NumPy (Slow Normals )
200
+ Speed-up relative to NumPy (Box-Muller )
200
201
************************************************************
201
- randomstate.prng-dsfmt-standard_normal 107.2 %
202
- randomstate.prng-mlfg_1279_861-standard_normal 51.2 %
203
- randomstate.prng-mrg32k3a-standard_normal -11.8 %
204
- randomstate.prng-mt19937-standard_normal 44.0 %
205
- randomstate.prng-pcg32-standard_normal 51.2 %
206
- randomstate.prng-pcg64-standard_normal 51.1 %
207
- randomstate.prng-xorshift1024-standard_normal 50.5 %
208
- randomstate.prng-xorshift128-standard_normal 52.1 %
209
-
210
- Speed-up relative to NumPy (Ziggural Normals )
202
+ randomstate.prng-dsfmt-standard_normal 70.5 %
203
+ randomstate.prng-mlfg_1279_861-standard_normal 26.9 %
204
+ randomstate.prng-mrg32k3a-standard_normal -18.7 %
205
+ randomstate.prng-mt19937-standard_normal 13.5 %
206
+ randomstate.prng-pcg32-standard_normal 26.1 %
207
+ randomstate.prng-pcg64-standard_normal 26.2 %
208
+ randomstate.prng-xorshift1024-standard_normal 27.2 %
209
+ randomstate.prng-xorshift128-standard_normal 30.0 %
210
+
211
+ Speed-up relative to NumPy (Ziggurat )
211
212
************************************************************
212
- randomstate.prng-dsfmt-standard_normal 283.7 %
213
- randomstate.prng-mlfg_1279_861-standard_normal 217.4 %
214
- randomstate.prng-mrg32k3a-standard_normal 16.6 %
215
- randomstate.prng-mt19937-standard_normal 201.3 %
216
- randomstate.prng-pcg32-standard_normal 274 .9%
217
- randomstate.prng-pcg64-standard_normal 310.8 %
218
- randomstate.prng-xorshift1024-standard_normal 336.3 %
219
- randomstate.prng-xorshift128-standard_normal 425.1 %
213
+ randomstate.prng-dsfmt-standard_normal 316.1 %
214
+ randomstate.prng-mlfg_1279_861-standard_normal 247.0 %
215
+ randomstate.prng-mrg32k3a-standard_normal 51.2 %
216
+ randomstate.prng-mt19937-standard_normal 175.9 %
217
+ randomstate.prng-pcg32-standard_normal 255 .9%
218
+ randomstate.prng-pcg64-standard_normal 329.1 %
219
+ randomstate.prng-xorshift1024-standard_normal 362.0 %
220
+ randomstate.prng-xorshift128-standard_normal 513.7 %
220
221
221
222
.. |Travis Build Status | image :: https://travis-ci.org/bashtage/ng-numpy-randomstate.svg?branch=master
222
223
:target: https://travis-ci.org/bashtage/ng-numpy-randomstate
0 commit comments