Ñò ]ÐKc@s„ddkTddklZddkZdefd„ƒYZdefd„ƒYZdefd „ƒYZed jo e ƒndS( iÿÿÿÿ(t*(trandomNtTestRegressioncBs#eZd„Zd„Zd„ZRS(cCsvxotidddƒD]X}tii|ddƒ}ti|ti jƒoti|tijƒpt‚qWdS(siMake sure generated random variables are in [-pi, pi]. Regression test for ticket #986. gÀg@iii2N(tnptlinspaceRtmtrandtvonmisestalltpitAssertionError(tselftmutr((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_VonMises_rangescCsfttitiidddddƒdjƒƒttitiidddddƒdjƒƒdS( sTest for ticket #921iii tsizei iiN(tassert_RRRthypergeometric(R ((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_hypergeometric_ranges1cCsªd}tiidƒtiidd|ƒ}ti|djƒt|ƒ}d|}t|dj|ƒti|djƒt|ƒ}d |}t|d j|ƒd S( sTest for ticket #923ièigš™™™™™é?Ris"Frequency was %f, should be > 0.45gÍÌÌÌÌÌÜ?is"Frequency was %f, should be < 0.23gq= ×£pÍ?N(RRtseedt logseriestsumtfloatR(R tNtrvsntfreqtmsg((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_logseries_convergences  (t__name__t __module__R RR(((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyRs tTestMultinomialcBs#eZd„Zd„Zd„ZRS(cCstidddgƒdS(Nidgš™™™™™É?gš™™™™™é?(Rt multinomial(R ((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyt test_basic'scCs#tiddddddgƒdS(Nidgš™™™™™É?gš™™™™™é?g(RR(R ((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_zero_probability*scCs„dtiddƒjo djnpt‚tidddƒ}tid|jƒpt‚ti|djƒpt‚dS(Niûÿÿÿiÿÿÿÿi(RtrandintR RR(R tx((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_int_negative_interval-s1(RRRR R#(((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyR&s  t TestSetStatecBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs4d|_ti|iƒ|_|iiƒ|_dS(NiÒ–I(RRt RandomStatetprngt get_statetstate(R ((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pytsetUp6s cCsX|iidƒ}|ii|iƒ|iidƒ}ti||jƒpt‚dS(Ni(R&ttomaxintt set_stateR(RRR (R toldtnew((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyR;scCs^|iiddƒ}|ii|iƒ|iiddƒ}ti||jƒpt‚dS(s= Make sure the cached every-other-Gaussian is reset. RiN(R&tstandard_normalR+R(RRR (R R,R-((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_gaussian_resetAscCsw|iiƒ|iiƒ}|iiddƒ}|ii|ƒ|iiddƒ}ti||jƒpt‚dS(sl When the state is saved with a cached Gaussian, make sure the cached Gaussian is restored. RiN(R&R.R'R+RRR (R R(R,R-((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyt test_gaussian_reset_in_media_resIs  cCs­|id }|iiddƒ}|ii|ƒ|iiddƒ}|ii|iƒ|iiddƒ}ti||jƒpt‚ti||jƒpt‚dS(sf Make sure we can accept old state tuples that do not have the cached Gaussian value. iþÿÿÿRiN(R(R&R.R+RRR (R t old_statetx1tx2tx3((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_backwards_compatibilityTs cCs|iiddƒdS(sm Ensure that the negative binomial results take floating point arguments without truncation. gà?N(R&tnegative_binomial(R ((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyttest_negative_binomialas(RRR)RR/R0R5R7(((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyR$5s     t__main__( t numpy.testingtnumpyRRtTestCaseRRR$Rtrun_module_suite(((sD/usr/lib64/python2.6/site-packages/numpy/random/tests/test_random.pyts  !3