[SciPy-user] what's wrong with radom.multivariate_normal
Alan G Isaac
aisaac at american.edu
Thu Dec 15 09:40:40 EST 2005
On Thu, 15 Dec 2005, jaonary at free.fr apparently wrote:
> data1 = random.multivariate_normal([0,0],[[0.5,0],[0,0.5]],[10])
> Traceback (most recent call last):
> File "<pyshell#9>", line 1, in -toplevel-
> data1 = random.multivariate_normal([0,0],[[0.5,0],[0,0.5]],[10])
> File "mtrand.pyx", line 837, in mtrand.RandomState.multivariate_normal
> AttributeError: 'module' object has no attribute 'singular_value_decomposition'
>>> scipy.base.__version__
'0.8.4'
>>> data1 = scipy.random.multivariate_normal([0,0],[[0.5,0],[0,0.5]],[10])
>>> data1
array([[ 0.24173896, 0.68537262],
[-0.75999958, 0.26496178],
[ 0.15525849, -0.61052565],
[-0.94612055, -0.98556872],
[-0.34111442, 0.86108778],
[ 1.09459551, 0.56298158],
[ 0.12430803, -0.42073144],
[-0.30572437, -0.6358559 ],
[-0.52274094, 0.00495374],
[-1.34852903, -0.96152263]])
fwiw,
Alan Isaac
More information about the SciPy-User
mailing list