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 D3C58C085 for ; Mon, 14 May 2012 09:43:00 +0000 (UTC) Received: (qmail 40646 invoked by uid 500); 14 May 2012 09:42:58 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 39958 invoked by uid 500); 14 May 2012 09:42:57 -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 39940 invoked by uid 99); 14 May 2012 09:42:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 09:42:57 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=izrU=DS=m4x.org=sebastien.brisard@bounces.m4x.org designates 129.104.30.34 as permitted sender) Received: from [129.104.30.34] (HELO mx1.polytechnique.org) (129.104.30.34) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 09:42:48 +0000 Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.213.171]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 181E6140000B5 for ; Mon, 14 May 2012 11:42:26 +0200 (CEST) Received: by yenq11 with SMTP id q11so5244958yen.30 for ; Mon, 14 May 2012 02:42:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.135.97 with SMTP id pr1mr3730653igb.49.1336988545867; Mon, 14 May 2012 02:42:25 -0700 (PDT) Received: by 10.64.72.167 with HTTP; Mon, 14 May 2012 02:42:25 -0700 (PDT) In-Reply-To: <4FB0CD13.8080004@fbm.htwk-leipzig.de> References: <4FB0BC15.2090508@fbm.htwk-leipzig.de> <4FB0CD13.8080004@fbm.htwk-leipzig.de> Date: Mon, 14 May 2012 11:42:25 +0200 Message-ID: Subject: Re: [math] Usage of DifferentiableMultivariateRealFunction From: =?ISO-8859-1?Q?S=E9bastien_Brisard?= To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Mon May 14 11:42:27 2012 +0200 (CEST)) X-Org-Mail: sebastien.brisard.1997@polytechnique.org X-Old-Spam-Flag: No, tests=bogofilter, spamicity=0.001535, queueID=55FF81400574F Hi, > > thanks for the reply. But i wonder what is the input for value and gradie= nt. > in DifferentiableMultivariateRealFunction this needs to be a double array > but what needs to be provided there? The parameters for the function to > optimize? > > Thank you very much again > > Andreas > Do please have a look to the examples, as your question (and my answer) is too vague if not supported by proper code. I guess the answer to your question is 'yes', the double[] array is indeed the set of parameters, but again, do check the examples, I would not like to be misguiding you. Besides the user guide which should provide you with the answer, have a look to this implementation [1], line 153. In this implementation, x[i] and y[i] are the data points, yhat[i] are the model predictions, and a[] are the parameters. You should be able to find your way with this example. Good luck, S=E9bastien [1] http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/or= g/apache/commons/math3/optimization/general/StatisticalReferenceDataset.jav= a?view=3Dmarkup --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org