Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA69CFB02 for ; Wed, 17 Apr 2013 08:11:11 +0000 (UTC) Received: (qmail 18953 invoked by uid 500); 17 Apr 2013 08:11:10 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 18865 invoked by uid 500); 17 Apr 2013 08:11:10 -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 18841 invoked by uid 99); 17 Apr 2013 08:11:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 08:11:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [80.67.169.19] (HELO solo.fdn.fr) (80.67.169.19) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 08:11:03 +0000 Received: from lehrin.spaceroots.org (smtp.spaceroots.org [80.67.176.229]) by smtp.fdn.fr (Postfix) with ESMTP id A25AF448A4 for ; Wed, 17 Apr 2013 10:10:22 +0200 (CEST) Received: from [127.0.0.1] (lehrin.spaceroots.org [127.0.0.1]) by lehrin.spaceroots.org (Postfix) with ESMTP id 2751F5F430 for ; Wed, 17 Apr 2013 10:10:17 +0200 (CEST) Message-ID: <516E58E8.5020601@free.fr> Date: Wed, 17 Apr 2013 10:10:16 +0200 From: Luc Maisonobe User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Commons Users List Subject: [math] Re: non linear regression References: <1FDFC92E-489A-4797-A004-B379CCB278F7@univ-reims.fr> <0681BC0C-D4E3-461B-9E0E-3831767992B3@univ-reims.fr> In-Reply-To: <0681BC0C-D4E3-461B-9E0E-3831767992B3@univ-reims.fr> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 17/04/2013 08:12, eric henon a �crit : > Sorry, > > I made a mistake, > I'm not used with Jacobian, > the jacobian[i][2]= -1/x ... (without c parameter ...) > and it should be ok > using the common apache MultivariateMatrixFunction jacobian ... Yes, what is needed correspond to partial derivatives with respect to the parameters used for the fitting. In this context, x is not a parameter. Please also note that when writing to this list, you should use a marker like [math] in the subject line if you write about the math component (I have added it myself in this answer). The list is shared among all Apache Commons components, and it helps filtering mail. best regards, Luc > Eric. > > > Le 17 avr. 2013 � 07:52, Eric HENON a �crit : > >> Hello, >> >> I need to perform a non linear regression using this >> function: y = a + b lnx -c/x (a,b,c) being the parameters. >> I want to do this within the java language. >> >> I have a set of points (y1,x1), (y2, x2), � (yn, xn). >> >> >> The least square solver available in commons apache seemed >> to me a possible way to solve this, but it needs the jacobian matrix, >> which in my case, depends on the "c" parameter itself � >> >> This, I don't know how to implement the MultiVariateMatrixFunction jacobian() >> in this case. >> >> jacobian[i][0]= 1; >> jacobian[i][1]= ln x; >> jacobian[i][2]= ??? (+c/x^2) ?? >> The problem is that the "c" parameter appears in the formula here... >> >> Any help will be appreciated. >> Thanks in advance. >> Eric >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >> For additional commands, e-mail: user-help@commons.apache.org >> > > Eric Henon > Professeur > Universite de Reims Champagne-Ardenne > Institut de Chimie Moleculaire de Reims > http://www.univ-reims.fr/ICMR > CNRS UMR 6229 > UFR des Sciences Exactes et Naturelles > BP 1039 > 51687 Reims Cedex 2 (France) > T�l./Fax : + 33 (0) 3 26 91 84 97 > eric.henon@univ-reims.fr > > > --------------------------------------------------------------------- > 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