Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9336
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: RandomDirichlet? |
| Date | 2011-11-01 06:11 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <6hrva7h1irrei62sm79ntmsr803c0np907@4ax.com> (permalink) |
| References | <CAD575DC.8551%bravegag@hotmail.com> |
On Tue, 01 Nov 2011 10:09:32 +0100, Giovanni Azua <bravegag@hotmail.com> wrote, quoted or indirectly quoted someone who said : >But there is no "gamrnd" RandomGamma in Java nor RandomDirichlet. Before I >spend time writing this, can anyone advice for a low-footprint library >implementing those functions? That class of problem I have on my back shelf to investigate some day. One way to proceed is to look at the source code for the Gaussian random number generator to see how they warp the output from a linear random to an arbitrary shape. Look in src.zip. I would love to figure this out to create a recipe for arbitrary distrtibutions for http://mindprod.com/jgloss/peudorandom.html I have a vaguely related little problem in my todo list. Canada has 308 members of parliament. If there were no bias toward males or females, what could you say to a novice about how far from 50/50 it could it stray and still be accounted for by random variation, not bias? Presumably using the 19 times of 20 beloved of pollsters. -- Roedy Green Canadian Mind Products http://mindprod.com It's difficult to be rigorous about whether a machine really knows, thinks, etc., because we’re hard put to define these things. We understand human mental processes only slightly better than a fish understands swimming. ~ John McCarthy (born: 1927-09-04 died: 2011-10-23 at age: 84). Inventor of the term AI (Artificial Intelligence), the short-circuit OR operator (|| in Java), and LISP (LIst Processing Language) that makes EMACS (Extensible MACro System) so addictive.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
RandomDirichlet? Giovanni Azua <bravegag@hotmail.com> - 2011-11-01 10:09 +0100
Re: RandomDirichlet? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-01 07:50 -0400
Re: RandomDirichlet? Giovanni Azua <bravegag@hotmail.com> - 2011-11-01 19:50 +0100
Re: RandomDirichlet? Wojtek <nowhere@a.com> - 2011-11-01 04:54 -0700
Re: RandomDirichlet? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 06:11 -0700
Re: RandomDirichlet? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 06:16 -0700
Re: RandomDirichlet? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-01 20:23 -0400
Re: RandomDirichlet? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-02 01:39 -0700
Re: RandomDirichlet? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-02 08:17 -0400
Re: RandomDirichlet? Arne Vajhøj <arne@vajhoej.dk> - 2011-11-01 22:09 -0400
csiph-web