Path: csiph.com!usenet.pasdenom.info!aioe.org!rt.uk.eu.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.05; 'great.': 0.07; 'python': 0.09; 'cc:addr:python-list': 0.10; 'gui': 0.11; 'suggest': 0.11; 'exponential': 0.16; 'precede': 0.16; 'subject:distribution': 0.16; 'task.': 0.16; 'why,': 0.16; 'wxpython': 0.16; 'cc:2**0': 0.23; 'programming': 0.23; 'seems': 0.23; 'second': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'first,': 0.27; 'scale': 0.27; 'message- id:@mail.gmail.com': 0.27; 'arrival': 0.29; 'received:209.85.215.46': 0.30; 'code': 0.31; 'anybody': 0.32; 'print': 0.32; 'times.': 0.33; 'received:google.com': 0.34; 'project': 0.34; 'doing': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'data.': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'help': 0.40; 'traffic': 0.61; 'therefore': 0.65; 'where:': 0.65; 'drivers': 0.71; 'yourself': 0.77; 'introduce': 0.80; 'simulation.': 0.84; 'traveled': 0.84; 'average': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4fsOg6cSmpMHLhVXD5pmMrNa+GyXZ+PHRXYD0cRvOIM=; b=P7EShxKD3MOuf8Fm0NNnIBUlSt2Y0juIEUrxe31ACq5vX9xrjy93djVm3kwCnSDg+f B8Rc/ofdBTxshF4Y7vqCGAmlZ4J6LKUkNmSDQhsCf13eBzmH77JpLAsunkwngk5rvWiP TLotjVkveNwILU53YH0TfTaTaEEw3EH+55A8pPZJ6InaIdhOA4QvymK9OC+6EX0ppfVm 0Izl8d2szuhx0M+fOZqF2wiVxYZwbNsIv7j3bETiFTfm6EgY9W3AkCQnHYTw6i22ijU/ bEWdoTmwSNL7/bAOB/Z6e9UkzMNMdh2wTDcAbPNIC45KNkLPK+Z2zVkRr1c//ElwGoLc 4Qug== MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 28 Nov 2012 17:52:24 -0500 Subject: Re: Exponential arrival distribution in Python From: David Hutto To: Ian Kelly Content-Type: text/plain; charset=ISO-8859-1 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354143147 news.xs4all.nl 6930 [2001:888:2000:d::a6]:47755 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34039 >> 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. First, I would suggest that you give yourself a GUI like tkinter, wxpython to visualize the data. An average of the sequential(averaged per 60 second intervals) traveled by drivers on the road, and at what times. Then, and I don't know why, but it seems you want a logarithmic, scale where: for i in range(0,4) print "%i = %i" % (i * 10 **i) -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com