Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'url:sourceforge': 0.03; 'package,': 0.03; 'subject:Python': 0.05; 'great.': 0.07; 'python': 0.09; 'cc:addr:python-list': 0.10; 'library': 0.15; 'exponential': 0.16; 'precede': 0.16; 'subject:distribution': 0.16; 'task.': 0.16; 'projects,': 0.17; 'url:edu': 0.18; 'all,': 0.21; 'cheers,': 0.23; 'cc:2**0': 0.23; 'programming': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'wrote': 0.26; 'topic': 0.27; 'arrival': 0.29; 'writes:': 0.29; 'received:209.85.210.174': 0.30; 'url:2012': 0.30; 'code': 0.31; 'anybody': 0.32; 'tutorial': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'project': 0.34; 'doing': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'message- id:@gmail.com': 0.36; 'data.': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'some': 0.38; 'takes': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'traffic': 0.61; 'here:': 0.62; 'url:blogspot': 0.64; 'fun': 0.64; 'therefore': 0.65; 'study': 0.66; 'sounds': 0.71; 'presented': 0.72; 'header:Reply- to:1': 0.79; 'reply-to:addr:gmail.com': 0.79; 'introduce': 0.80; 'norm': 0.84; 'simulation': 0.84; 'simulation.': 0.84; 'url:tw': 0.84; 'albert': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:reply-to:gcc:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=AxBp7eX8ODSf5HHXTINo6FO5IvZSRS9IPOcIr5OJx2A=; b=kDWBK4Fog5Q6P0LW9qmz9yZHtux+JctAVUNlE04+cD+kiH1l9P1mwxS1DjjcPBbVUi ui2jL+PK/QD2Kt6tyxyNitpzLNMLUcVnIm/vEFQz5WX0h2xrFZ3vaPWmnmRXwoGt7I4/ /62DeBaFf4SbAS1JtFzl45QnKSTjI+C/sM7I+l/6gs3AKnh1rK16hYOIQslQbGUVaDNs O9048+wJrHVwCToq3Od5mfYwwKMqzjNir511NRUtf97QuL3NUvlaZJcdO8fiPE7fOwoV TJJXHtfqZxzzEvIsWSZ2c6KY0L2D+dQ3qfYsKvLVJKL5pg3C8M4lmQKXGdS+FCZxxR0/ 9PmA== From: Albert Chun-Chieh Huang To: Ricky Subject: Re: Exponential arrival distribution in Python References: Gcc: nnfolder+archive:sent.2012-11 Date: Thu, 29 Nov 2012 07:29:16 +0800 In-Reply-To: (Ricky's message of "Wed, 28 Nov 2012 13:34:41 -0800 (PST)") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Albert Chun-Chieh Huang List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354145369 news.xs4all.nl 6892 [2001:888:2000:d::a6]:33075 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34043 Hi, Ricky, Traffic simulation sounds like a good topic to use SimPy, which is a discrete-event simulation library in Python, c.f. http://simpy.sourceforge.net Professor Norm Matloff wrote a very good tutorial on SimPy, and you can download it here: http://heather.cs.ucdavis.edu/~matloff/simcourse.html Also, I've presented this SimPy package before, my slides might be helpful, http://alberthuang314.blogspot.tw/2012/01/simpy-slides-in-our-company-and-pyhug_26.html In short, SimPy is a process-oriented discrete-event simulation package, which will be easier to maintain than event-oriented discrete-event simulation. It also contains some tools to help us to visualize simulation data. It takes some time to study it, but if you would like to do some simulation projects, it will definitely be a good investment! Have fun with simulation! with Regards, Albert Huang Ricky writes: > Hi all, > > I am doing a project on traffic simulation. I want to introduce exponential arrival distribution to precede this task. Therefore I want write a code in python for exponential arrival distribution. I am very new for programming and if anybody can help me on this that would be great. > > Cheers, > Ricky