Patches item #1681432, was opened at 2007-03-15 09:09
Message generated for change (Comment added) made by collinwinter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1681432&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wladmir van der Laan (miathan6)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add triangular distribution to random

Initial Comment:
This patch adds the so called Triangular distribution for random values. It is 
often used in simulations when an upper and lower bound is known, and a most 
likely value but not the exact distribution. This distribution interpolates 
these values linearly.

http://en.wikipedia.org/wiki/Triangular_distribution


----------------------------------------------------------------------

>Comment By: Collin Winter (collinwinter)
Date: 2007-03-15 22:22

Message:
Logged In: YES 
user_id=1344176
Originator: NO

Could you work up some tests (Lib/test/test_random.py) and docs
(Doc/lib/librandom.tex) for this? An explanation of why you think this
should be included in the standard library would be helpful, too.

Also, it seems you made this patch against Python 2.3. While this
particular patch still applied (relatively) cleanly to Python 2.6a0 source,
Python 2.3 is no longer supported and most patches made against it have a
high probability of inapplicability. See http://www.python.org/dev/faq/ for
information on how to obtain a read-only checkout of the latest source
code.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1681432&group_id=5470
_______________________________________________
Patches mailing list
Patches@python.org
http://mail.python.org/mailman/listinfo/patches

Reply via email to