Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34039

Re: Exponential arrival distribution in Python

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 <dwightdhutto@gmail.com>
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 <CALwzidkpeUh4sk9koL0fSWfvpUVXMXstpUq1v+mDgZN2ttWYhg@mail.gmail.com>
References <f241ce20-2bca-4ced-814c-5143f0d82ca4@googlegroups.com> <CALwzidkpeUh4sk9koL0fSWfvpUVXMXstpUq1v+mDgZN2ttWYhg@mail.gmail.com>
Date Wed, 28 Nov 2012 17:52:24 -0500
Subject Re: Exponential arrival distribution in Python
From David Hutto <dwightdhutto@gmail.com>
To Ian Kelly <ian.g.kelly@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.348.1354143147.29569.python-list@python.org> (permalink)
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

Show key headers only | View raw


>> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Exponential arrival distribution in Python Ricky <rakkitha263@gmail.com> - 2012-11-28 13:34 -0800
  Re: Exponential arrival distribution in Python David Hutto <dwightdhutto@gmail.com> - 2012-11-28 17:52 -0500
  Re: Exponential arrival distribution in Python David Hutto <dwightdhutto@gmail.com> - 2012-11-28 17:55 -0500
  Re: Exponential arrival distribution in Python Paul Rubin <no.email@nospam.invalid> - 2012-11-28 15:25 -0800
  Re: Exponential arrival distribution in Python Albert Chun-Chieh Huang <alberthuang314@gmail.com> - 2012-11-29 07:29 +0800
  Re: Exponential arrival distribution in Python duncan smith <buzzard@invalid.invalid> - 2012-11-29 16:24 +0000

csiph-web