Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31849
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: random generation from discrete probability distribution function |
| Date | 2015-06-23 20:31 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <mmcts9$v3f$1@dont-email.me> (permalink) |
| References | <f078c43f-bc67-4a50-b660-68294042b23e@googlegroups.com> |
On 06/23/2015 04:46 AM, saha.noruz@gmail.com wrote: > Hi all, > > I need to code a probability matrix and then choose a random number for each row according to the their probability. > I know I have to use Random(),but I do not know how can I use this one according to the probability. > Also, I need to know how I can code the probability matrix. > > Thanks > You might try something from the org.apache.commons.math3.distribution package. There is a similar package that I used recently to get samples from an exponential distribution but I can't recall it.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
random generation from discrete probability distribution function "saha.noruz@gmail.com" <sahar.fakhar@gmail.com> - 2015-06-23 01:46 -0700
Re: random generation from discrete probability distribution function Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-06-23 07:37 -0400
Re: random generation from discrete probability distribution function Arne Vajhøj <arne@vajhoej.dk> - 2015-06-28 20:27 -0400
Re: random generation from discrete probability distribution function e.d.programmer@gmail.com - 2015-06-23 04:51 -0700
Re: random generation from discrete probability distribution function Jeff Higgins <jeff@invalid.invalid> - 2015-06-23 20:31 -0400
csiph-web