diff --git a/README.md b/README.md index fbcc1f6d2..c90d9e225 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ generators in Python and NumPy. ## Compatibility Warning -`RandomGenerator` does notsupports Box-Muller normal variates and so it not +`RandomGenerator` does not support Box-Muller normal variates and so it not 100% compatible with NumPy (or randomstate). Box-Muller normals are slow to generate and all functions which previously relied on Box-Muller normals now use the faster Ziggurat implementation. If you require backward @@ -128,7 +128,7 @@ the RNG._ ## Version The version matched the latest version of NumPy where -`RandoMGenerator(MT19937())` passes all NumPy test. +`RandomGenerator(MT19937())` passes all NumPy test. ## Documentation diff --git a/README.rst b/README.rst index 587d73f82..79252abc4 100644 --- a/README.rst +++ b/README.rst @@ -12,7 +12,7 @@ generators in Python and NumPy. Compatibility Warning --------------------- -``RandomGenerator`` does notsupports Box-Muller normal variates and so +``RandomGenerator`` does not support Box-Muller normal variates and so it not 100% compatible with NumPy (or randomstate). Box-Muller normals are slow to generate and all functions which previously relied on Box-Muller normals now use the faster Ziggurat implementation. If you @@ -140,7 +140,7 @@ Version ------- The version matched the latest version of NumPy where -``RandoMGenerator(MT19937())`` passes all NumPy test. +``RandomGenerator(MT19937())`` passes all NumPy test. Documentation ------------- diff --git a/doc/source/change-log.rst b/doc/source/change-log.rst index 9029981e3..271ee5647 100644 --- a/doc/source/change-log.rst +++ b/doc/source/change-log.rst @@ -4,6 +4,7 @@ Change Log Changes since v1.14 =================== +- Added absolute_import to avoid import noise on Python 2.7 - Add legacy generator which allows NumPy replication - Improve type handling of integers - Switch to array-fillers for 0 parameter distribution to improve performance diff --git a/randomgen/dsfmt.pyx b/randomgen/dsfmt.pyx index ef813f10f..c83ade5cd 100644 --- a/randomgen/dsfmt.pyx +++ b/randomgen/dsfmt.pyx @@ -86,7 +86,7 @@ cdef class DSFMT: Notes ----- ``DSFMT`` directly provides generators for doubles, and unsigned 32 and 64- - bit integers [1]_ . These are not firectly available and must be consumed + bit integers [1]_ . These are not directly available and must be consumed via a ``RandomGenerator`` object. The Python stdlib module "random" also contains a Mersenne Twister @@ -313,7 +313,7 @@ cdef class DSFMT: @property def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/generator.pyx b/randomgen/generator.pyx index 4abe1e54d..c996f905d 100644 --- a/randomgen/generator.pyx +++ b/randomgen/generator.pyx @@ -85,7 +85,7 @@ cdef class RandomGenerator: >>> from randomgen import MT19937 >>> rg = RandomGenerator(MT19937()) - The generator is also directly avialable from basic RNGs + The generator is also directly available from basic RNGs >>> rg = MT19937().generator >>> rg.standard_normal() @@ -375,7 +375,7 @@ cdef class RandomGenerator: .. math:: f(x; a,b) = \\frac{1}{B(\\alpha, \\beta)} x^{\\alpha - 1} (1 - x)^{\\beta - 1}, - where the normalisation, B, is the beta function, + where the normalization, B, is the beta function, .. math:: B(\\alpha, \\beta) = \\int_0^1 t^{\\alpha - 1} (1 - t)^{\\beta - 1} dt. diff --git a/randomgen/legacy/_legacy.pyx b/randomgen/legacy/_legacy.pyx index af1a6b417..5a6dc5542 100644 --- a/randomgen/legacy/_legacy.pyx +++ b/randomgen/legacy/_legacy.pyx @@ -34,7 +34,7 @@ cdef class _LegacyGenerator: numbers for a set of distributions where the method used to produce random samples has changed. Three core generators have changed: normal, exponential and gamma. These have been replaced by faster Ziggurat-based methods in - ``RadnomGenerator``. ``_LegacyGenerator`` retains the slower methods + ``RandomGenerator``. ``_LegacyGenerator`` retains the slower methods to produce samples from these distributions as well as from distributions that depend on these such as the Chi-square, power or Weibull. diff --git a/randomgen/mt19937.pyx b/randomgen/mt19937.pyx index df3d03b0b..14ab24f39 100644 --- a/randomgen/mt19937.pyx +++ b/randomgen/mt19937.pyx @@ -61,7 +61,7 @@ cdef class MT19937: Notes ----- ``MT19937`` directly provides generators for doubles, and unsigned 32 and 64- - bit integers [1]_ . These are not firectly available and must be consumed + bit integers [1]_ . These are not directly available and must be consumed via a ``RandomGenerator`` object. The Python stdlib module "random" also contains a Mersenne Twister @@ -299,7 +299,7 @@ cdef class MT19937: @property def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/pcg32.pyx b/randomgen/pcg32.pyx index 0148c4ec1..5c83b1040 100644 --- a/randomgen/pcg32.pyx +++ b/randomgen/pcg32.pyx @@ -327,7 +327,7 @@ cdef class PCG32: @property def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/pcg64.pyx b/randomgen/pcg64.pyx index 226c47a27..ae553d3a5 100644 --- a/randomgen/pcg64.pyx +++ b/randomgen/pcg64.pyx @@ -386,7 +386,7 @@ cdef class PCG64: @property def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/philox.pyx b/randomgen/philox.pyx index 610f3d055..c08f54496 100644 --- a/randomgen/philox.pyx +++ b/randomgen/philox.pyx @@ -394,7 +394,7 @@ cdef class Philox: def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/threefry.pyx b/randomgen/threefry.pyx index 789c50c44..e8971ff42 100644 --- a/randomgen/threefry.pyx +++ b/randomgen/threefry.pyx @@ -99,8 +99,8 @@ cdef class ThreeFry: ``ThreeFry`` can be used in parallel applications by calling the method ``jump`` which advances the state as-if :math:`2^{128}` random numbers have been generated. Alternatively, - ``advance`` can be used to advance the counter for an abritrary number of - positive steps in [0, 2**256). When using ``jump``, all generators should + ``advance`` can be used to advance the counter for an any + positive step in [0, 2**256). When using ``jump``, all generators should be initialized with the same seed to ensure that the segments come from the same sequence. Alternatively, ``ThreeFry`` can be used in parallel applications by using a sequence of distinct keys where each @@ -387,7 +387,7 @@ cdef class ThreeFry: def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/threefry32.pyx b/randomgen/threefry32.pyx index 4a11ce693..512ce9d00 100644 --- a/randomgen/threefry32.pyx +++ b/randomgen/threefry32.pyx @@ -382,7 +382,7 @@ cdef class ThreeFry32: def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/xoroshiro128.pyx b/randomgen/xoroshiro128.pyx index 061e03f5f..d9891e590 100644 --- a/randomgen/xoroshiro128.pyx +++ b/randomgen/xoroshiro128.pyx @@ -273,7 +273,7 @@ cdef class Xoroshiro128: @property def ctypes(self): """ - Cytpes interface + Ctypes interface Returns ------- diff --git a/randomgen/xorshift1024.pyx b/randomgen/xorshift1024.pyx index 98065d447..bf8f32e90 100644 --- a/randomgen/xorshift1024.pyx +++ b/randomgen/xorshift1024.pyx @@ -306,7 +306,7 @@ cdef class Xorshift1024: @property def ctypes(self): """ - Cytpes interface + Ctypes interface Returns -------