From: SourceForge.net <no...@so...> - 2007-12-31 23:08:42
|
Feature Requests item #1859693, was opened at 2007-12-28 08:50 Message generated for change (Comment added) made by erickb You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=362883&aid=1859693&group_id=12883 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: math Group: None Status: Open Priority: 5 Private: No Submitted By: Eric Kemp-Benedict (erickb) Assigned to: Nobody/Anonymous (nobody) Summary: Submission: Poisson distribution Initial Comment: Hi, I'm submitting a file that implements the standard 3 functions for a Poisson distribution: pdf-poisson (*) cdf-poisson random-poisson (*) For discrete distributions, this is properly a probability mass function (pmf). Would it be helpful or annoying to call this pmf-poisson? The random-poisson function implements a pair of methods for generating Poisson-distributed random variates so it's reasonably fast at both small and large mu. The pdf-poisson function has a very direct implementation. The cdf-poisson function uses the incomplete gamma function that I submitted in a separate submission. I can re-send it if you like. Thanks! Eric ---------------------------------------------------------------------- >Comment By: Eric Kemp-Benedict (erickb) Date: 2007-12-31 18:08 Message: Logged In: YES user_id=816411 Originator: YES I'm submitting a collection of files as a zip archive. These include: * poisson.tcl - pdf-poisson - cdf-poisson - random-poisson - Definitions of tests & helper procs * possion_test.tcl - The code that runs the tests, including a visual comparison of a histogram produced by random-poisson and the pdf * simpletest.tcl - The code to run the non-visual tests * incgamma.tcl - Implementation of the incomplete gamma function This code is more explicit about the tests. Also, it includes one bug fix: the cdf should have been evaluated at floor(x), rather than at x. This is now corrected. Eric File Added: poisson.zip ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=362883&aid=1859693&group_id=12883 |