summaryrefslogtreecommitdiff
path: root/doc/source/reference/random
Commit message (Collapse)AuthorAgeFilesLines
* DOC: update libnpymath docs on its status and how to consume itRalf Gommers2022-11-061-2/+3
| | | | | | [skip azp] [skip actions] Closes gh-21431
* DOC: Explain how to use sequences of integers as seeds.Robert Kern2022-08-132-2/+84
|
* DOC: RST Titles Underline reordering (#21677)Matthias Bussonnier2022-06-0811-45/+45
| | | | | | | | | | | | | | | | | | | | | * ~ not ^ * = skipped for - * swap - and = underline in files they are swapped * * to = in header underline * - to = and * to - for consitency * A few more change * -> ~ * use ~ instead of + * DOC: Fixup `c-api/array.rst` with further ^ with ~ replacement There is still a fourth level here, which remains using " Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* DOC: various spell checks and typo fixes (#21314)Logan Thomas2022-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: contigous -> contiguous * DOC: enlongated -> elongated * DOC: thuse -> thus * DOC: quantityt -> quantity * DOC: suppled -> supplied * DOC: intgrally -> integrally * DOC: assignnent -> assignment * DOC: homoegeneous -> homogeneous * DOC: interpereted -> interpreted * DOC: optimised -> optimized * DOC: Advantanges -> Advantages * DOC: realised -> realized * DOC: parametrizing -> parameterizing * DOC: realised -> realized * DOC: intrisics -> intrinsics * DOC: ablility -> ability * DOC: intrisic -> intrinsic * DOC: unversal -> universal * DOC: machnisms -> mechanisms * DOC: specfiy -> specify * DOC: exclution -> exclusion * DOC: optimzations -> optimizations * DOC: declrations -> declarations * DOC: auto-gernreated -> auto-generated * DOC: it highely recomaned -> it is highly recommended * DOC: exectuing -> executing * DOC: strectched -> stretched * DOC: foriegn -> foreign * DOC: indeded -> intended * DOC: multimdimensional -> multidimensional * DOC: supserseded -> superseded * DOC: generalisation -> generalization * FIX: whitespace before comma
* DOC: Made suggested changes.Bhavuk kalra2022-04-031-1/+1
| | | | Kept the Python code output uniform
* DOC: Improve "random.generator.shuffle" docs pagebhavukkalra2022-03-301-0/+2
|
* DOC: random: Fix spelling of 'precision'.warren2022-01-212-2/+2
|
* MAINT, DOC: discard repeated wordsDimitri Papadopoulos2022-01-131-2/+2
|
* revert default_rng seeding and use SKIPPierre de Buyl2021-12-081-18/+18
|
* DOC: remove explicit imports in rst filesPierre de Buyl2021-12-081-3/+0
| | | | Add conftest.py and pytest.ini files in doc directory
* [DOC] make some doctests in user,reference pass pytestPierre de Buyl2021-12-081-13/+16
| | | | | | | | | | | | 1. Add `import numpy as np` in rst files 2. Update NumPy repr for array (whitespace) 3. Update bytearray representation 4. Fix tiny output formatting (`<class ...>`, etc) 5. Format tracebacks 6. Skip random number tests or some platform-dependent outputs 7. Add `<matplotlib. ... at 0x...>` or similar output lines where missing 8. Set seed
* [MAINT] minor grammar fix: add missing "an"bbrewington2021-10-251-1/+1
|
* [MAINT] Fix minor typobbrewington2021-10-251-1/+1
|
* DOC: Typos found by codespellDimitri Papadopoulos2021-09-211-1/+1
|
* DOC: Use versionadded tag instead of inline comment to specify minimum ↵zoj2021-05-171-1/+3
| | | | version needed for random c-api
* DOC: Clarify minimum numpy version needed to use random c-apizoj2021-05-171-1/+1
|
* DOC: Update performance for new PRNGKevin Sheppard2021-05-111-65/+64
| | | | Add performance benchmarks for PCG64DXSM
* DOC: refine wording for clarityRobert Kern2021-05-041-4/+4
|
* DOC: fixes in response to comments.Robert Kern2021-05-042-21/+20
|
* STY: Add spaces after commas.Charles Harris2021-05-041-1/+1
|
* DOC: Add PCG64DXSM to performance-measuring script.Robert Kern2021-05-041-3/+3
|
* DOC: nuance recommendations for PCG64.Robert Kern2021-05-042-6/+12
|
* DOC: math formatting.Robert Kern2021-05-041-3/+3
|
* DOC: Document PCG64DXSM.Robert Kern2021-05-044-4/+197
|
* Fix typo in random docsChristina Hedges2021-04-221-1/+1
| | | | | DOC Fix typo in random docs `Randomstate` -> `RandomState`
* DOC: Update random c-api documentationzoj2021-04-171-3/+7
|
* Merge pull request #18579 from mwtoews/refactor-dictRalf Gommers2021-03-211-5/+4
|\ | | | | MAINT: OrderedDict is no longer necessary from Python 3.7
| * MAINT: OrderedDict is no longer necessary from Python 3.7Mike Taves2021-03-081-5/+4
| |
* | MAINT: Fix missed replacement of rg by rng.Charles Harris2021-03-151-1/+1
| |
* | DOC: Consistently use rng as variable name for random generatorsTim Hoffmann2021-03-153-29/+29
|/
* MAINT: Fix typo SeepSequenceCharles Harris2020-12-191-1/+1
|
* DOC: random: add some examples for SeedSequenceEvgeni Burovski2020-12-171-0/+38
| | | | | Based on https://mail.python.org/pipermail/numpy-discussion/2020-December/081323.html
* DOC: Fix for buildling with sphinx 3takanori-pskq2020-11-066-6/+12
|
* Update doc/source/reference/random/c-api.rstTakanori H2020-10-241-2/+1
| | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* DOC: Fix some referencestakanori-pskq2020-10-241-1/+1
|
* DOC: Fix the link to the quick-start in the old API functionsSebastian Berg2020-09-031-1/+1
|
* ENH: random: Add the method `permuted` to Generator. (#15121)Warren Weckesser2020-09-021-0/+94
| | | | | | | | | | | * ENH: random: Make _shuffle_raw and _shuffle_int standalone functions. * ENH: random: Add the method `permuted` to Generator. The method permuted(x, axis=None, out=None) shuffles an array. Unlike the existing shuffle method, it shuffles the slices along the given axis independently. Closes gh-5173.
* Update doc/source/reference/random/index.rstCharles Harris2020-07-131-2/+1
| | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
* DOC: use print() instead of str() for generator object to pass circleci testsLaurie2020-07-121-9/+9
|
* DOC: updates based on mattip's suggestions, add seed to all default_rng so ↵Laurie2020-07-121-24/+22
| | | | tests will pass, get rid of directly printing generator object
* DOC: add examples to random number generator pagesLaurie2020-07-121-20/+59
|
* DOC: reword random c-api introduction, cython is documented in Extending ↵Matti Picus2020-07-021-13/+7
| | | | | (#16731) DOC: reword random c-api introduction, cython is documented in Extending
* DOC: Fixes for 18 broken links (#16472)bjnath2020-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Fixes for 18 broken links This, with PR #16465, should fix nearly all the remaining broken links on the site. 4 or 5 others should be easy to fix and just need attention from someone more knowledgeable -- will open an issue. For release notes with dead links, I could usually find links on archive.org for roughly contemporary versions. * DOC: Update to "Fixes for 18 broken links #16472" * Obsolete links, previously commented out, now deleted: https://github.com/numpy/numpy/pull/16472#discussion_r433928958 * Semantic markup for reference to Python class: https://github.com/numpy/numpy/pull/16472#discussion_r433553928 * Missing :ref: in internal link: https://github.com/numpy/numpy/pull/16472#discussion_r433554484 Not included: Resolution on using external/internal doc link in .py: https://github.com/numpy/numpy/pull/16472#discussion_r433554824 * DOC: Add internal link for 'Fixes for 18 broken links' PR #16472 Making reference [1] an internal link in function_base.py => numpy.vectorize.html * DOC: Redirect 2 link fixes in PR #16472 * governance.rst link reverted * ununcs.rst `overridden` link goes where it was meant to per https://github.com/numpy/numpy/pull/16472#pullrequestreview-424666070
* DOC: Fix typos and cosmetic issuesMartin Michlmayr2020-05-171-2/+2
|
* Merge pull request #16078 from rossbar/doc/axis_to_new_or_differentMatti Picus2020-05-072-0/+15
|\ | | | | DOC: Add axis to random module "new or different" docs
| * DOC: Added `permutation` to methods with axis kwarg.Ross Barnowski2020-04-252-6/+7
| | | | | | | | | | Added `permutation` to `choice` and `shuffle` in the list of highlighted methods with an `axis` kwarg.
| * DOC: Added bullet about axis kwarg to rng overview docs.Ross Barnowski2020-04-252-0/+14
| | | | | | | | | | | | | | | | | | Modified the introductory/overview documentation for the random module to highlight the addition of the `axis` kwarg to methods like `shuffle` and `choice` for dealing with multi-dimensional arrays. Related to gh-16075
* | DOC: Moved timeit examples under relevant bullet point.Ross Barnowski2020-04-251-11/+12
| |
* | DOC,BLD: Limit timeit iterations in random docs.Ross Barnowski2020-04-251-6/+6
|/ | | | | | | | | | Limiting the number of loops performed in the %timeit evaluation results in a ~20% speedup in the time it takes to build the documentation. The results of the "benchmarking" are less accurate from the limited number of evaluations, but the relationship between the timing between the legacy and Generator sampling methods is preserved.
* BUG: add missing c_distributions.pxd, enables cython use of random C-API ↵Matti Picus2020-03-161-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gh-15463) xref gh-14778 As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them. Squashed commits: * BUG: add missing c_distributions.pxd to enable cython use of random C-API * ENH, TST: add npyrandom library like npymath, test cython use of it * BUG: actually prefix f-string with f * MAINT: fixes from review, add _bit_generato_bit_generator.pxd * STY: fixes from review * BLD: don't use nprandom library for mtrand legacy build * TST: WindowsPath cannot be used in subprocess's list2cmdline * MAINT, API: move _bit_generator to bit_generator * DOC: add release note about moving bit_generator * DOC, MAINT: fixes from review * MAINT: redo dtype determination from review