Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B40F10C7B for ; Thu, 20 Feb 2014 10:07:13 +0000 (UTC) Received: (qmail 55053 invoked by uid 500); 20 Feb 2014 10:07:09 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 54956 invoked by uid 500); 20 Feb 2014 10:07:06 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 54948 invoked by uid 99); 20 Feb 2014 10:07:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 10:07:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thomas.neidhart@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qa0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 10:07:00 +0000 Received: by mail-qa0-f45.google.com with SMTP id m5so2733263qaj.32 for ; Thu, 20 Feb 2014 02:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CIv1t8YEhIZX+nIcAr2KyyzNa0ms0v4pHpwrTMfkrL0=; b=ybfQXPOSNUylHKbcVwWOAooygd2yZz/s1JherdE7DNaXGNa9UqkuCKmrgCg+DyrbKq UQEGqn3lcebGTRQhR/lWv11mZQ0rB4Q5mdYn+IhNgeSo0UhGq2wWxaGlxXVQqnW25cpG eaaiS65AwGSjjnfox73R/fAtlC84KuZ3uFkiAnLEi1jb816856v3Gx0wOuDlTI8SkRVZ sqDOIVOS15SX+kEsEABs8lqmWQdtgMozN2INH2rWI3KomiY2V/dbLzXeF0cSqWX4ut2V OnWgVUD43YfL1k2+2CN1qW+c2DDGGI3M/888OnrBQ016igoOGt5nI4JKPJ+St/Wj2HDs mYYA== MIME-Version: 1.0 X-Received: by 10.224.103.129 with SMTP id k1mr448938qao.97.1392890799814; Thu, 20 Feb 2014 02:06:39 -0800 (PST) Received: by 10.140.85.145 with HTTP; Thu, 20 Feb 2014 02:06:39 -0800 (PST) In-Reply-To: <64280e22250e84264523f3bbcb6f7bc5@smtp.spaceroots.org> References: <64280e22250e84264523f3bbcb6f7bc5@smtp.spaceroots.org> Date: Thu, 20 Feb 2014 11:06:39 +0100 Message-ID: Subject: Re: [math] refactoring least squares From: Thomas Neidhart To: Commons Developers List Content-Type: multipart/alternative; boundary=047d7b66f74b557aa704f2d3a9bc X-Virus-Checked: Checked by ClamAV on apache.org --047d7b66f74b557aa704f2d3a9bc Content-Type: text/plain; charset=ISO-8859-1 On Thu, Feb 20, 2014 at 10:05 AM, luc wrote: > Hi all, > > I am looking more precisely at the least squares package and have a few > adjustments to propose. > > The Evaluation interface declares a computeValue and a computeJacobian > method among others. > However, it seems the implementations are really simply built with the > precomputed values and > just return them. The other compute methods (for covariances for instance) > do really compute > something based on the stored Jacobian or value. > > Wouldn't it be more clear to use "getValue" and "getJacobian" for these > two methods and keep > "compute" for the other ones? > > Another point is binding value and Jacobian together in a single object. I > personally think it > is a good thing, but if I remember well, some users explicitly asked for > separating them to save > some computation. I'm not sure about this, though, so I would like to have > some advices. > > Last point is OptimizationProblem. Should this interface been in fitting > or in a more general > package, and in this case which one (optim, util)? > I had the same thought, I think it would better fit in optim (considering that we do not remove the package completely in 4.0 but rather rework it with the new API). Thomas --047d7b66f74b557aa704f2d3a9bc--