Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31849
| Path | csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: random generation from discrete probability distribution function |
| Date | Tue, 23 Jun 2015 20:31:56 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <mmcts9$v3f$1@dont-email.me> (permalink) |
| References | <f078c43f-bc67-4a50-b660-68294042b23e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 24 Jun 2015 00:33:13 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="8e164d158183579609bf09837dee5210"; logging-data="31855"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AxknzymFg/3ZdZmjHTBUNogT+zpFlfTs=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 |
| In-Reply-To | <f078c43f-bc67-4a50-b660-68294042b23e@googlegroups.com> |
| Cancel-Lock | sha1:3u+Qxh9wbJj9KkyxA77OjKesZ7o= |
| Xref | csiph.com comp.lang.java.programmer:31849 |
Show key headers only | View raw
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