[Numpy-tickets] [NumPy] #986: Von Mises draws not between -pi and pi [patch]
NumPy
numpy-tickets@scipy....
Fri Jan 16 06:17:33 CST 2009
#986: Von Mises draws not between -pi and pi [patch]
--------------------------+-------------------------------------------------
Reporter: anand | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.3.0
Component: numpy.random | Version: none
Severity: normal | Keywords: Von Mises, vonmises, mtrand
--------------------------+-------------------------------------------------
As the following test shows, Von Mises draws are not currently staying
between -pi and pi (at least on my Mac):
from numpy import *
import numpy as np
import pylab as pl
for mu in arange(-4,5)*pi/2:
q=pl.hist((np.random.mtrand.vonmises(mu,1,10000)),50)
print mu
raw_input()
The attached patch makes them do so.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/986>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list