Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 55452 invoked from network); 13 May 2003 14:54:46 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 13 May 2003 14:54:46 -0000 Received: (qmail 11061 invoked by uid 97); 13 May 2003 14:56:52 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 11053 invoked from network); 13 May 2003 14:56:52 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 13 May 2003 14:56:52 -0000 Received: (qmail 55082 invoked by uid 500); 13 May 2003 14:54:41 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 55017 invoked from network); 13 May 2003 14:54:39 -0000 Received: from unknown (HELO hume.tsdinc.steitz.com) (209.249.229.10) by daedalus.apache.org with SMTP; 13 May 2003 14:54:39 -0000 Content-Class: urn:content-classes:message Received: from Lavoie.tsdinc.steitz.com ([209.249.229.4]) by hume.tsdinc.steitz.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 13 May 2003 10:52:31 -0400 Received: from steitz.com ([130.13.162.175]) by Lavoie.tsdinc.steitz.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 13 May 2003 10:52:31 -0400 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <3EC106B4.4080604@steitz.com> Date: Tue, 13 May 2003 07:52:36 -0700 From: "Phil Steitz" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Jakarta Commons Developers List" Subject: Re: [math] Random data and lang.math.RandomUtils References: <13A6D312-8545-11D7-AF07-003065DC754C@blueyonder.co.uk> Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 May 2003 14:52:31.0336 (UTC) FILETIME=[47C7A680:01C3195F] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N robert burrell donkin wrote: > a few observations: > > 1. there isn't really any harm in (some) duplication between math and lang. > 2. what lang wants to include is an issue best left to the lang component. > 3. there isn't any reason why stuff can't be refactored later. it's > easier to discuss code in CVS. Thanks. I will submit this with minimal refactoring and we can talk about it in concrete terms. Phil > > - robert > > On Tuesday, May 13, 2003, at 02:49 AM, Phil Steitz wrote: > >> I am pulling together another submission that includes the random data >> generation stuff that sent us down this path and I need to decide what >> to submit as patches to lang's RandomUtil's implementation and what to >> include here. Here is my current plan: >> >> nextIntBetween(lower,upper), nextLongBetween(lower,upper), >> nextGaussian(mu,sigma) go to lang.math.RandomUtils. >> >> nextExponential(lambda), nextPoisson(lambda) and some other parametric >> generators are included in a new math.DataGeneration class that >> exposes all of these (using the lang implemention for uniform, >> Gaussian deviates) >> as well as the following: >> >> * random values generated using an empirical probability distribution >> estimated from an input file (i.e., values distributed "like" those in >> the input file) >> >> * random values generated by randomly selecting values from a vector >> read from a file and stored in memory >> >> * values generated by replaying the values in the input file repeatedly >> >> Right now, I have a RandomData class that generates all of the >> parametric stuff, an EmpiricalDistribution class that does density >> estimation from an input file and a ValueServer that uses the two of >> these to support data generation in all of the modes described above. >> So what I am thinking about is combining them all into one. The >> non-parametric data generation modes are really useful in simulation, >> since you can feed them with observed data. Thoughts? >> >> Phil >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-dev-help@jakarta.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org