[Numpy-discussion] multivariate_normal issue with 'size' argument

Emanuele Olivetti emanuele at relativita.com
Fri May 24 08:59:12 EDT 2013


Interesting. Anyone able to reproduce what I observe?

Emanuele

On 05/24/2013 02:09 PM, Nicolas Rougier wrote:
>
>
> Works for me (numpy 1.7.1, osx 10.8.3):
>
>>>> import numpy as np
>>>> print np.random.multivariate_normal(mean=np.zeros(2), cov=np.eye(2), size=1)
> [[-0.55854737 -1.82631485]]
>>>> print np.random.multivariate_normal(mean=np.zeros(2), cov=np.eye(2), size=np.int64(1))
> [[ 0.40274243 -0.33922682]]
>
>
>
> Nicolas
>
> On May 24, 2013, at 2:02 PM, Emanuele Olivetti <emanuele at relativita.com> wrote:
>
>> import numpy as np
>> print np.random.multivariate_normal(mean=np.zeros(2), cov=np.eye(2), size=1)
>> print np.random.multivariate_normal(mean=np.zeros(2), cov=np.eye(2),
>> size=np.int64(1))
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>




More information about the NumPy-Discussion mailing list