summaryrefslogtreecommitdiff
path: root/numpy/random/tests/test_random.py
Commit message (Collapse)AuthorAgeFilesLines
...
* TST: Add tests for new feature and fix in random.choiceSebastian Berg2012-12-061-1/+27
|
* FIX: loosen numerical tolerance in test_pareto()Nathaniel J. Smith2012-09-071-1/+7
| | | | | | | | | | | | | | | | | The problem was that in 32bit Ubuntu 12.04, one gets the following: > /home/njs/numpy/.tox/py27/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py(363)test_pareto() -> np.testing.assert_array_almost_equal(actual, desired, decimal=15) (Pdb) actual[1, 0] 52828779.702948704 (Pdb) desired[1, 0] 52828779.702948518 and the test was comparing the numbers to 1e-14, which obviously failed. Fixes #424.
* [FIX] Make np.random.shuffle less brain-deadNathaniel J. Smith2012-07-171-6/+11
| | | | | | | | | The logic in np.random.shuffle was... not very sensible. Fixes trac ticket #2074. This patch also exposes a completely unrelated issue in numpy.testing. Filed as Github issue #347 and marked as knownfail for now.
* FIX: Add release notes, use inverse cdf method for non-uniformChris Jordan-Squire2011-12-171-1/+1
| | | | | sampling with replacement, change searchsorted to use side='right', and regenerate mtrand.c.
* FIX: Changed named to choice, reverted other changes.Chris Jordan-Squire2011-12-171-12/+12
|
* ENH: New sample function, bugs in tests fixedChris Jordan-Squire2011-12-161-0/+45
|
* TST: lower precision for one more test in random. Closes #1768. Again.Ralf Gommers2011-04-011-1/+1
|
* TST: lower precision of lognormal test a little more. Closes #1768.Ralf Gommers2011-03-161-1/+1
| | | | Thanks to Mark Sienkiewicz for testing.
* TST: Some tests in random module were failing on RHEL4 due to too high ↵Ralf Gommers2011-03-151-9/+9
| | | | | | | | | precision. It is not yet confirmed this is the right precision, since I don't have an RHEL4 test machine. Changing this anyway for 1.6.0 beta 1. See ticket 1768.
* TST: Py3K: fix bytes/string test failure in numpy.random.bytes() test.rgommers2011-03-111-2/+3
|
* TST: Add test for poisson exceptions.Charles Harris2011-03-101-1/+10
|
* TST: add test for random distributions. Closes #1512.rgommers2011-03-061-1/+357
| | | | | | | These tests ensure that returned values stay the same, which is necessary because other tests rely on this when setting a fixed seed. Thanks to Vincent Davis.
* ENH: Break out regression tests into separate file and explicitly import neededCharles Harris2011-01-241-49/+1
| | | | functions from np.testing.
* ENH: Replace assert by assert_.Charles Harris2011-01-241-9/+9
|
* BUG: Ticket #1690, fix overflow error in randint. Slightly modified from theJustin Peel2011-01-241-0/+9
| | | | original by committer.
* BUG: random: accept Python long as input to np.random.permutation (#1535)Pauli Virtanen2010-07-091-0/+6
|
* Make logseries test deterministic.Charles Harris2009-03-141-3/+4
|
* Fix tickets #921 and #923. Add regression tests.Charles Harris2009-03-141-10/+32
|
* Applied Anand's patch fixing Ticket #986 regarding the domain of the Von ↵dhuard2009-03-091-0/+11
| | | | Mises random variable generator. Regression test added.
* BUG: Allow floating point argument n to negative binomial distribution.Robert Kern2008-08-231-0/+6
|
* Restore old test framework classes.Alan McIntyre2008-06-211-1/+1
| | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc.
* Switched to use nose to run tests. Added test and bench functions to all ↵Alan McIntyre2008-06-171-3/+3
| | | | modules.
* Add the cached Gaussian to the state tuple. Preserve backwards compatibility ↵Robert Kern2008-04-091-0/+23
| | | | with the old state tuple.
* Fix #581.Robert Kern2008-04-091-0/+23
|
* more janitorial workJarrod Millman2007-12-291-3/+3
|
* Fix randint for negative interval.Stefan van der Walt2007-11-231-0/+6
|
* Rename test classes to CapWords.Stefan van der Walt2007-10-021-1/+1
|
* Temporary workaround for problem with 'multivariate' when specifying zeroStefan van der Walt2007-08-281-0/+13
probabilities.