473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

multinormal distribution

TG
hi there.

I'm struggling with a function of numpy. Here it is :
import numpy as NP
mean = NP.array([0,0])
cov = NP.array([[1,0.25],[0.25,1]])
v = NP.random.multivariate_normal(mean,cov)

Quite simple code : it is supposed to generate an array of two random
values taken from a multinormal distribution, with respect to means and
covariance matrix given as parameters.

What happens on my computer is simple : it freezes ! I can't even stop
the process with ctrl-C in my python interpreter i have to kill it from
outside.

I'm running :
- python 2.4.1
- numpy 0.9.8

Jul 7 '06 #1
1 1694
TG wrote:
hi there.

I'm struggling with a function of numpy. Here it is :

import numpy as NP
mean = NP.array([0,0])
cov = NP.array([[1,0.25],[0.25,1]])
v = NP.random.multivariate_normal(mean,cov)

Quite simple code : it is supposed to generate an array of two random
values taken from a multinormal distribution, with respect to means and
covariance matrix given as parameters.

What happens on my computer is simple : it freezes ! I can't even stop
the process with ctrl-C in my python interpreter i have to kill it from
outside.

I'm running :
- python 2.4.1
- numpy 0.9.8
Well, it's working quite well for me on OS X PPC and Linux AMD-64 with a
reasonably recent SVN checkout of numpy. Did you build numpy yourself, or use a
binary distribution? Windows? Linux? OS X?

Please join us on the numpy mailing list with this information; hopefully there
is someone there with a similar platform who can replicate your bug or offer
better advice than myself.

http://www.scipy.org/Mailing_Lists

In the meantime, you might try compiling a recent SVN checkout of numpy and see
if the problem goes away for you.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Jul 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Michael Peuser | last post by:
Hi, I should like to make a distribution (using Tkinter), with standard DLLs removed. pythonXX.dll is no problem. tcl und tk, which make the mass of mega bytes, cannot be removed because...
3
by: Tan Thuan Seah | last post by:
Hi all, I am looking for a way to generate a random number given the variance of a gaussian distribution(or normal distribution). The mean is 0 but the variance will be a user input. Does C++...
2
by: joshsackett | last post by:
Hi all, Is it possible to move the distribution database to a new folder/drive without removing replication? I am attempting to do it the same way you would move tempdb: ALTER DATABASE...
2
by: tthomas | last post by:
Greetings, I am using CDO.Message to send email messages from my application. I now need to send email to existing distribution lists in our Global Address List. However, our exchange server...
12
by: kabradley | last post by:
Hello, Thanks for looking at my post and hopefully having an answer or at least a suggestion to my problem. I currently work at a financial planning office that deals with many clients and accounts....
0
by: hutchijw | last post by:
Im currently in the process of creating a tool that will assist us in making distribution lists. When we create a distribution list manually, we assign an owner in the manage by tab, and to delegate...
11
by: Alex | last post by:
Hi everybody, I wonder if it is possible in python to produce random numbers according to a user defined distribution? Unfortunately the random module does not contain the distribution I need...
0
by: eGenix Team: M.-A. Lemburg | last post by:
________________________________________________________________________ ANNOUNCING eGenix.com mx Base Distribution Version 3.1.1 for Python 2.6 Open Source Python extensions providing...
0
by: M.-A. Lemburg | last post by:
Just to let you know: we also provide binaries and support for Mac OS X Intel and PPC. Thanks to Joe Strout for pinging us about this. On 2008-10-15 17:41, eGenix Team: M.-A. Lemburg wrote: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.