Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 76667 invoked from network); 25 May 2010 22:22:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 May 2010 22:22:00 -0000 Received: (qmail 27788 invoked by uid 500); 25 May 2010 22:22:00 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 27732 invoked by uid 500); 25 May 2010 22:22:00 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 27724 invoked by uid 99); 25 May 2010 22:22:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 May 2010 22:22:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 May 2010 22:21:57 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4PMLZvi029712 for ; Tue, 25 May 2010 22:21:36 GMT Message-ID: <28571801.45371274826095952.JavaMail.jira@thor> Date: Tue, 25 May 2010 18:21:35 -0400 (EDT) From: "Matt Price (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (MATH-372) Curve fitting appears unreliable In-Reply-To: <1705596.45301274825853192.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Price updated MATH-372: ---------------------------- Description: I've been trying to find a good curve fitting library for Java for the last couple of weeks. I came across Apache Commons Math and was really excited because I like all things Apache. The curve fitting API looks good and is fairly easy to use, however, it doesn't seem to be as accurate as it should/could be. I've produced some code and data that shows that the initial parameter guesses affect the results too much. Guess low and the curve ends up low, guess high and the curve ends up high. I wish I had a stronger statistics/math background to make more sense of this. I've tried playing with the optimizer's options (costRelativeToTolerance, initialStepBoundFactor, maxEvaluations, maxIterations, orthTolerance and parRelativeTolerance) but nothing seems to improve the end result. I've attached the spreadsheet and Java code. FYI, in the spreadsheet you'll see an entry in the chart for DataFitX. It is a COM library used in my company's current software that needs to be replaced. Any help on this would be greatly appreciated. If you need more info, let me know and I'll supply it as quickly as I can. Thanks, Matt was: I've been trying to find a good curve fitting library for Java for the last couple of weeks. I came across Apache Commons Math and was really excited because I like all things Apache. The curve fitting API looks good and is fairly easy to use. However, it doesn't seem to be as accurate as it should/could be. I've produced some code and data that shows that the initial parameter guesses affect the results too much. Guess low and the curve ends up low, guess high and the curve ends up high. I wish I had a stronger statistics/math background to make more sense of this. I've tried playing with the optimizer's options (costRelativeToTolerance, initialStepBoundFactor, maxEvaluations, maxIterations, orthTolerance and parRelativeTolerance) but nothing seems to improve the end result. I've attached the spreadsheet and Java code. FYI, in the spreadsheet you'll see an entry in the chart for DataFitX. It is a COM library used in my company's current software that needs to be replaced. Any help on this would be greatly appreciated. If you need more info, let me know and I'll supply it as quickly as I can. Thanks, Matt > Curve fitting appears unreliable > -------------------------------- > > Key: MATH-372 > URL: https://issues.apache.org/jira/browse/MATH-372 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.1 > Environment: Win7 x64, Netbeans, JDK 1.6.0.18 > Reporter: Matt Price > Original Estimate: 8h > Remaining Estimate: 8h > > I've been trying to find a good curve fitting library for Java for the last couple of weeks. I came across Apache Commons Math and was really excited because I like all things Apache. The curve fitting API looks good and is fairly easy to use, however, it doesn't seem to be as accurate as it should/could be. > I've produced some code and data that shows that the initial parameter guesses affect the results too much. Guess low and the curve ends up low, guess high and the curve ends up high. I wish I had a stronger statistics/math background to make more sense of this. I've tried playing with the optimizer's options (costRelativeToTolerance, initialStepBoundFactor, maxEvaluations, maxIterations, orthTolerance and parRelativeTolerance) but nothing seems to improve the end result. > I've attached the spreadsheet and Java code. FYI, in the spreadsheet you'll see an entry in the chart for DataFitX. It is a COM library used in my company's current software that needs to be replaced. > Any help on this would be greatly appreciated. If you need more info, let me know and I'll supply it as quickly as I can. > Thanks, > Matt -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.