Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C525510B09 for ; Sat, 10 Aug 2013 01:25:51 +0000 (UTC) Received: (qmail 50897 invoked by uid 500); 10 Aug 2013 01:25:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 50814 invoked by uid 500); 10 Aug 2013 01:25:51 -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 50768 invoked by uid 99); 10 Aug 2013 01:25:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 01:25:51 +0000 Date: Sat, 10 Aug 2013 01:25:51 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MATH-887) "AbstractLeastSquares" cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles updated MATH-887: ------------------------ Fix Version/s: (was: 4.0) All changes proposed here have been implemented while working on MATH-874 and MATH-1008. No more changes will be applied to this class, as it will be deprecated. > "AbstractLeastSquares" cleanup > ------------------------------- > > Key: MATH-887 > URL: https://issues.apache.org/jira/browse/MATH-887 > Project: Commons Math > Issue Type: Task > Affects Versions: 3.0 > Reporter: Gilles > Assignee: Gilles > Priority: Minor > Labels: api-change > Attachments: MATH-887.diff > > > Class "AbstractLeastSquares" (in package "o.a.c.m.optimization.general") has a lot of "protected" fields that are modified by its subclasses (e.g. "LevenbergMarquardt"). This decreases encapsulation which in turn makes the code more difficult to understand and modify. > I propose to deprecate (in 3.1) and remove or make "private" (in 4.0) all fields that could be hidden or should be modified through setter methods. > Part of the code could also be more readable (and self-documenting) by making use of higher-level constructs such as "RealMatrix" rather than using explicit loops. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira