Message219033
While NumPy is of course not normative, this is what they do:
>>> numpy.random.triangular(left=1, right=2, mode=0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "mtrand.pyx", line 3218, in mtrand.RandomState.triangular (numpy/random/mtrand/mtrand.c:13407)
ValueError: left > mode
>>> numpy.random.triangular(left=1, right=2, mode=3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "mtrand.pyx", line 3220, in mtrand.RandomState.triangular (numpy/random/mtrand/mtrand.c:13433)
ValueError: mode > right
>>> numpy.random.triangular(left=1, right=1, mode=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "mtrand.pyx", line 3222, in mtrand.RandomState.triangular (numpy/random/mtrand/mtrand.c:13459)
ValueError: left == right |
|
Date |
User |
Action |
Args |
2014-05-24 11:35:55 | skrah | set | recipients:
+ skrah, rhettinger, terry.reedy, larry, asvetlov, python-dev, mark108, serhiy.storchaka, Chaka_bum |
2014-05-24 11:35:55 | skrah | set | messageid: <1400931355.03.0.0789557281655.issue13355@psf.upfronthosting.co.za> |
2014-05-24 11:35:54 | skrah | link | issue13355 messages |
2014-05-24 11:35:53 | skrah | create | |
|