Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 809 invoked from network); 8 Dec 2010 17:58:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Dec 2010 17:58:28 -0000 Received: (qmail 52381 invoked by uid 500); 8 Dec 2010 17:58:27 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 52304 invoked by uid 500); 8 Dec 2010 17:58:27 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 52296 invoked by uid 99); 8 Dec 2010 17:58:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 17:58:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [161.154.39.110] (HELO jbxsa1163.fpl.com) (161.154.39.110) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 17:58:18 +0000 Received: from jbxsa438.fplu.fpl.com (155.109.34.251) by jbxsa1163.Exchange.Edge (161.154.39.110) with Microsoft SMTP Server (TLS) id 8.2.213.0; Wed, 8 Dec 2010 12:58:23 -0500 Received: from JBXEXVS01.fplu.fpl.com ([155.109.34.248]) by jbxsa438.fplu.fpl.com ([155.109.34.251]) with mapi; Wed, 8 Dec 2010 12:57:57 -0500 From: "Rothenberg, Michael" To: Commons Users List Date: Wed, 8 Dec 2010 12:57:56 -0500 Subject: RE: [MATH] Looking for example code for the math.random and math.optimization libraries Thread-Topic: [MATH] Looking for example code for the math.random and math.optimization libraries Thread-Index: AcuW/p8d1uJlck4RTSKp/TKHNfU4hwAACIPgAAA8rrA= Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Thanks for the quick response, Joe. I am trying to pull random data based = on a distribution to start with. =20 I have two variables with historical data and a correlation between them: p= ower and gas prices. I am now looking to simulate some relationships. 1st= step is to pull random power and gas pairs for each time period based on a= distribution (historical mean/stddev) and correlation. Lognormal is prefer= red, but I can make normal into log normal if needed. I was browsing through math.random and came across the CorrelatedRandomVect= orGenerator class. Sounds like that is right up my alley in terms of fitti= ng my needs... but I have no idea how to implement/use it. Thanks in advance for your help!=20 Best regards, Michael w: 561.304.5921 m: 772.263.8343 -----Original Message----- From: Haswell, Joe [mailto:josiah.d.haswell@hp.com]=20 Sent: Wednesday, December 08, 2010 12:41 PM To: Commons Users List Subject: RE: [MATH] Looking for example code for the math.random and math.o= ptimization libraries Do you have any specific questions? Hard to point you in the right directio= n or provide help if I don't know what you need. Joe H. | HP Software. -----Original Message----- From: Rothenberg, Michael [mailto:MICHAEL.ROTHENBERG@nexteraenergy.com]=20 Sent: Wednesday, December 08, 2010 10:38 AM To: user@commons.apache.org Subject: [MATH] Looking for example code for the math.random and math.optim= ization libraries Hi all, I have been reading the JavaDoc and everything else I can find on the Commo= ns.Math.Random and .Optimization libraries, but have not figured out how to= use them. Does anyone have any code examples/web sites/forums/etc.. that = I can use? Best regards, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org