Skip to content

Commit fa533c5

Browse files
authored
Merge pull request #281 from zoj613/doc_typo
DOC: fix some typo and grammatical errors in docs
2 parents 5df6539 + 517d799 commit fa533c5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

doc/source/bit_generators/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bit Generators
44
The random values produced by :class:`numpy.random.Generator`
55
(and also :class:`~randomgen.generator.Generator`)
66
are produced by a bit generator. These bit generators do not directly provide
7-
random numbers and only contains methods used for seeding, getting or
7+
random numbers and only contain methods used for seeding, getting or
88
setting the state, jumping or advancing the state, and for accessing
99
low-level wrappers for consumption by code that can efficiently
1010
access the functions provided, e.g., `numba <https://numba.pydata.org>`_.

doc/source/custom-bit-generators.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"bit generators in pure Python or, if performance is an issue, using Cython or by\n",
2020
"accessing functions in a compiled library (e.g., a DLL).\n",
2121
"\n",
22-
"Here we look examine the steps needed to write a pure Python bit\n",
22+
"Here we examine the steps needed to write a pure Python bit\n",
2323
"generator and higher-performance generator using Cython."
2424
]
2525
},
@@ -33,7 +33,7 @@
3333
"source": [
3434
"## Using Python\n",
3535
"\n",
36-
"The example here beings by writing a class that implements the PCG64\n",
36+
"The example here begins by writing a class that implements the PCG64\n",
3737
"bit generator using the XSL-RR output transformation. While this is not\n",
3838
"a complete implementation (it does not support `advance` or `seed`),\n",
3939
"it is simple. The key to understanding PCG is that the underlying state\n",
@@ -253,7 +253,7 @@
253253
"wire up this function by setting `state_setter` and `state_getter` in `UserBitGenerator`.\n",
254254
"These both take callable functions.\n",
255255
"\n",
256-
"This time the `state_getter` and `state_setter` are used to that the state can be read\n",
256+
"This time the `state_getter` and `state_setter` are used so that the state can be read\n",
257257
"and set through the bit generator."
258258
]
259259
},
@@ -842,4 +842,4 @@
842842
},
843843
"nbformat": 4,
844844
"nbformat_minor": 4
845-
}
845+
}

doc/source/future.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The future plans for randomgen are:
1111
* Remove :class:`~randomgen.generator.Generator` and :class:`~randomgen.mtrand.RandomState`. These
1212
duplicate NumPy and will diverge over time. The versions in NumPy are authoritative. These
1313
have been deprecated as of version 1.19 and will be removed in 1.21.
14-
* The novel methods of :class:`~randomgen.generator.Generator` in a
14+
* Put the novel methods of :class:`~randomgen.generator.Generator` in a
1515
:class:`~randomgen.generator.ExtendedGenerator`. :class:`~randomgen.generator.ExtendedGenerator`
1616
will be maintained, although it is possible that some of the methods may
1717
migrate to NumPy.

doc/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ generators, 'in addition' to the standard PRNG in NumPy. The included PRNGs are
105105
:meth:`~randomgen.xoroshiro128.Xoroshiro128.jumped` for details.
106106
More information about this PRNG is available at the
107107
`xorshift, xoroshiro and xoshiro authors' page`_.
108-
* XorShift1024*φ - Fast fast generator based on the XSadd
108+
* XorShift1024*φ - Fast generator based on the XSadd
109109
generator. Supports ``jump`` and so can be used in
110110
parallel applications. See the documentation for
111111
:meth:`~randomgen.xorshift1024.Xorshift1024.jumped` for details. More information

doc/source/multithreading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The single threaded call directly uses the PRNG.
9494
9595
66.5 ms ± 171 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
9696
97-
The gains are substantial and the scaling is reasonable even for large that
97+
The gains are substantial and the scaling is reasonable even for arrays that
9898
are only moderately large. The gains are even larger when compared to a call
9999
that does not use an existing array due to array creation overhead.
100100

doc/source/parallel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Distinct Keys in Cryptographic Generators
4343
The cryptographic pseudo-random number generators (PRNGs) support using distinct
4444
keys to produce distinct sequence.
4545
Generators that support this form of parallelization include :class:`~randomgen.aes.AESCounter`,
46-
:class:`~randomgen.chacha.ChaCha`,,:class:`~randomgen.hc128.HC128`
46+
:class:`~randomgen.chacha.ChaCha`, :class:`~randomgen.hc128.HC128`,
4747
:class:`~randomgen.threefry.ThreeFry`, :class:`~randomgen.philox.Philox`, and
4848
:class:`~randomgen.speck128.SPECK128`.
4949

@@ -81,7 +81,7 @@ the core PRNG. This occurs for two reasons:
8181

8282
* The random values are simulated using a rejection-based method
8383
and so, on average, more than one value from the underlying
84-
PRNG is required to generate an single draw.
84+
PRNG is required to generate a single draw.
8585
* The number of bits required to generate a simulated value
8686
differs from the number of bits generated by the underlying
8787
PRNG. For example, two 16-bit integer values can be simulated

0 commit comments

Comments
 (0)